libopenhbci2 incompatible with Finance::Quote

Christian Stimming stimming at tuhh.de
Sat Mar 6 17:10:29 CST 2004


-----BEGIN PGP SIGNED MESSAGE-----

On Freitag, 5. März 2004 00:28, David Hampton wrote:
> /opt/gnucash/devel/share/gnucash/guile-modules/gnucash/process.scm:98:21:
> In procedure waitpid in expression (waitpid pid waitopt):
> /opt/gnucash/devel/share/gnucash/guile-modules/gnucash/process.scm:98:21:
> No child processes
>
> =====
>
> Gnucash then summarily quits.  Thanks to a suggestion from Derek, I
> tracked the problem back to the GWEN_Process_ModuleInit() function in
> gwenhywfar-0.9.6 (a prerequisite of openhbci2).  This function installs
> a signal handler to catch the SIGCHLD signal, apparently overriding the
> guile signal handler.  Guile doesn't accept this situation, thus the
> problem.  

I tried to fix this problem on the gwenhywfar side. The point is that 
gwenhywfar intentionally installs a handler for the SIGCHLD signal (even 
though it's unused from gnucash). I now thought that everything would be fine 
if gwenhywfar simply stores the existing signal handler from sigaction() and 
calls it when its own handler is finished. 

The problem then is that at the point where gwenhywfar calls 
sigaction(SIGCHLD, ...), the pointer to the old action only returns SIG_DFL, 
i.e. "the default action". In other words, gwenhywfar so far doesn't see any 
special handlers that guile might have installed. Furthermore, I tried to 
track down the place where guile installs the handler -- to me this looked 
like s_scm_sigaction() in libguile/scmsigs.c. But when I started gnucash with 
gdb attached, and set a breakpoint at that function, it turned out it was 
never executed -- neither before nor after gwenhywfar's setup...

I'm confused. What should we fix in gwenhywfar when simply removing the signal 
handler is not an option? Any ideas...

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQCVAwUBQEpaZWXAi+BfhivFAQE3rwP/dE6KkcXTLbMaAI2Q7LHErqG6PnP7D+uO
o7HOSaV77423st7rnKDOpqfcBD0NN98kXuT5yXG1+JH6rbXUGG9dgEmrAtpxtFHo
1Y5vcEXWiZxFxkM2dyqJL49F0AJyqPY3x+hivh2p7eE3YBHnehNdBKzW46rbejY6
a1O1YUIYYpw=
=dN5B
-----END PGP SIGNATURE-----



More information about the gnucash-devel mailing list