Re: Proper behaviour for wait()?

From: Valentin Nechayev (netch_at_iv.nn.kiev.ua)
Date: 05/31/03

  • Next message: Dag-Erling Smorgrav: "Re: gcc bug? Openoffice port impossibel to compile on 4.8"
    Date: Sat, 31 May 2003 10:43:49 +0300
    To: Paul Herman <pherman@frenchfries.net>
    
    

     Fri, May 30, 2003 at 22:00:18, pherman (Paul Herman) wrote about "Proper behaviour for wait()?":

    PH> anyone know what the "proper" behavior for wait() is when SIGCHLD
    PH> is ignored? Is it simply undefined? Don't see anything mentioned
    PH> in the wait(2) manpage one way or tother, and other OSes don't seem
    PH> to agree much.

    Citing SUSv2:

       SA_NOCLDWAIT
              If set, and sig equals SIGCHLD, child processes of the calling
              processes will not be transformed into zombie processes when
              they terminate. If the calling process subsequently waits for
              its children, and the process has no unwaited for children that
              were transformed into zombie processes, it will block until all
              of its children terminate, and wait(), wait3(), waitid() and
              waitpid() will fail and set errno to [ECHILD]. Otherwise,
              terminating child processes will be transformed into zombie
              processes, unless SIGCHLD is set to SIG_IGN.

    The same for SUSv3.

    -netch-
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Dag-Erling Smorgrav: "Re: gcc bug? Openoffice port impossibel to compile on 4.8"

    Relevant Pages

    • Re: [PATCH] fix handling of SIGCHILD from reaped child
      ... okay. ... I'll try again if people admit me to go ahead. ... But we are not checking that SIGCHLD is blocked? ... I'm sorry if I don't read SUSv3 correctly. ...
      (Linux-Kernel)
    • Re: Re: Re: Proper way to prevent a device (thats unrecognized)fromhotplugging?
      ... Preston ... Proper way to prevent a device fromhotplugging? ... and I just set it up so that it detects what is being inserted and calls the apropriate scripts ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)
    • /media and /mnt ownership and permissions
      ... I know this isn't proper. ... My setting up a sidux on X61s ... Should /media be owned by root/floppy? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • /media and /mnt ownership and permissions
      ... I know this isn't proper, ... sidux is owned by root/floppy. ... Should /media be owned by root/floppy? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: linuxtv on debian
      ... hierarchy to get the proper ID information for the devices, ... NAME and SYMLINK entries (you might not need a ... That's as much as I can recall, except that the above does work! ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)