Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > SIGCHLD & popen() in ES3
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 27th February 06:40
kosayac@netscape.net
External User
 
Posts: 1
Default SIGCHLD & popen() in ES3



Nils,

Thanks for the reply, however I don't use solaris.

The man page for signal(7) on ES3 clearly states that the default action
for SIGCHLD is ignore. Apparently the popen() in ES3 does not restore the
action unless it has been ********ly set.


Also, the man page for 'popen()' on ES3 makes no such caveat about
SIGCHLD. In addition, the new ES3 behavior is different than Redhhat 7/8
and Hpux 10.20, 11.xx.

So, the work around is to set the action to ignore before using 'popen()'
I'll go through all the old programs and update them.


KosayaC
  Reply With Quote


  sponsored links


2 27th February 06:40
nils_o._selåsdal
External User
 
Posts: 1
Default SIGCHLD & popen() in ES3



I've learned a long time ago not to rely on linux manpages.
  Reply With Quote
3 27th February 06:42
kosayac@netscape.net
External User
 
Posts: 1
Default SIGCHLD & popen() in ES3


Nils,

I think the error is more likely in popen(). A simple test demonstrates
that a popen() in ES3 does not deliver a SIGCHLD if a single child is
forked from popen() whereas if the child forks children the state of a
defaulted action is lost and you get the SIGCHLD.

Also, the do***ented behavior is what occurs in previous versions of
RedHat Linux as well as all known version of HPUX.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666