[PATCH] Fix segfault in ps after integration of TASK_EVENTS_INFO

2013-01-05 Thread David Höppner
Hi, this fixes a segfault of ps (ps a -o msgin) after TASK_EVENTS_INFO will be integrated in gnumach. thanks, David Subject: [PATCH] Fix segfault in ps after integration of TASK_EVENTS_INFO * libps/procstat.c (merge_procinfo): Also copy taskevents. * libps/procstat.c (set_procinfo_flags): Set p

[PATCH,HURD] hurdselect: remove dead code.

2013-01-05 Thread Samuel Thibault
Hello, This removes code which actually never happens, and is already taken care of in the function. This is in the second part of select, when the __mach_msg() function over the portset has returned something else than MACH_MSG_SUCCESS. I guess in the past the value returned by __mach_msg() was

[PATCH,HURD] hurdselect: let select get interrupted by signals

2013-01-05 Thread Samuel Thibault
Hello, This lets select get interrupted by signals: without passing MACH_RCV_INTERRUPT to __mach_msg, it would just loop again on signal delivery. Worse, the timeout would be reused as such (as documented for mach_msg), leading to potential infinite loop when getting frequent-enough signals. This