[lkml]   [1996]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[PROPOSED PATCH] wait4 and SIGCHLD
    As mentioned earlier on linux-kernel, Linux discards any pending
    SIGCHLD signals when a process calls one of the wait() functions.
    I don't know of any other unix that does this, so I hereby
    propose a patch that will bring Linux back in sync (hopefully :).

    The patch is against 2.0.0.

    I am running a kernel with this patch at the moment, and am
    experiencing no problems whatsoever, except that the system does
    not boot after I exit an emergency shell, but that is a bug in

    P.S. this is my first patch, so please be gentle :)

    *** kernel/exit.c.orig Mon Jun 3 11:26:38 1996
    --- kernel/exit.c Thu Jun 27 14:39:08 1996
    *** 668,674 ****
    goto end_wait4;
    - current->signal &= ~(1<<(SIGCHLD-1));
    retval = -ERESTARTSYS;
    if (current->signal & ~current->blocked)
    goto end_wait4;
    --- 668,673 ----
    Michiel Boland <>
    University of Nijmegen
    The Netherlands

     \ /
      Last update: 2005-03-22 13:37    [W:0.017 / U:87.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site