Just yesterday I upgraded my DirectFB to the current CVS HEAD.  I had
to build and install a new kernel for it as I am using the multi-app
core.  My GTK+-DirectFB application fork/execs another application
(MPlayer).  I install a signal handler for SIGCHLD just prior to the
fork/exec (g_spawn_async_with_pipes() actually).

When the child I fork/exec exits, my signal handler does indeed get
run, but when I call waitpid() with the pid argument (arg. 1) set to 0
to wait for any children whose process group ID is equal to that of
the calling process, I get ECHILD.  If I use -1 as the pid argument to
waitpid (wait for any child process), I get the pid of the exited
child.

These semantics have changed recently.  Prior, I was able to use 0 as
the pid to wait for only processes whose process group ID is equal to
that of the calling process, now I have to use -1 to wait for any
child process.

Is this change intentional with the new multi-app core?

b.

-- 
Brian J. Murrell

Attachment: msg01111/pgp00000.pgp
Description: PGP signature

Reply via email to