• Roland McGrath's avatar
    [PATCH] back out siginfo_t.si_rusage from waitid changes · 8ec9399f
    Roland McGrath authored
    As I explained in the waitid patches, I added the si_rusage field to
    siginfo_t with the idea of having the siginfo_t waitid fills in contain all
    the information that wait4 or any such call could ever tell you.  Nowhere
    in POSIX nor anywhere else specifies this field in siginfo_t.  
    
    When Ulrich and I hashed out the system call interface we wanted, we looked
    at siginfo_t and decided there was plenty of space to throw in si_rusage.
    Well, it turns out we didn't check the 64-bit platforms.  There struct
    rusage is ridiculously large (lots of longs for things that are never in a
    million years going to hit 2^32), and my changes bumped up the size of
    siginfo_t.  Changing that size is more trouble than it's worth.
    
    This patch reverts the changes to the siginfo_t structure types,
    and no longer provides the rusage details in SIGCHLD signal data.
    Instead, I added a fifth argument to the waitid system call to fill in rusage.
    
    waitid is the name of the POSIX function with four arguments.  It might
    make sense to rename the system call `waitsys' to follow SGI's system call
    with the same arguments, or `wait5' in the mindless tradition.  But, feh.
    I just added the argument to sys_waitid, rather than worrying about
    changing the name in all the tables (and choosing a new stupid name).
    Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    8ec9399f
siginfo.h 8.06 KB