]> Zhao Yanbai Git Server - minix.git/commit
getrusage(2): zero out ru_nsignals field 01/3201/1
authorDavid van Moolenbroek <david@minix3.org>
Sun, 27 Sep 2015 15:00:19 +0000 (15:00 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 28 Sep 2015 14:06:58 +0000 (14:06 +0000)
commit0f8e20a12ce891f0ea230592ef663a200f7166ca
tree22c14450d04d9fa0a87121ac5d313da2592728d5
parentcd27b2627a4d19f83649c1b00b9c236cf7a66266
getrusage(2): zero out ru_nsignals field

The current value was both wrong (counting spawned kernel signals
rather than delivered user signals) and returned for the calling
process even if the request was for the process's children.
For now we are better off not populating this field at all.

Change-Id: I6c660be266b5746b7c3db57ae88fa7f872961ee2
minix/kernel/proc.c
minix/kernel/proc.h
minix/kernel/proto.h
minix/kernel/system.c
minix/kernel/system/do_fork.c
minix/kernel/system/do_getinfo.c
minix/usr.bin/trace/service/pm.c