Commits


libthread: use setpgid instead of setpgrp


libthread: call setpgrp in programs that will background This fixes the 'run stats from rc; exit rc; stats dies' problem. It's unclear whether this is the right fix or whether rc should be starting all its interactive commands in their own process groups. But at least it does fix stats dying.


libthread: add threadmaybackground Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.


Trivial changes: whitespace and modes. Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>


OS X Tiger changes


do not touch TSTP, TTIN, TTOU


different fix for main proc bug


too big fd


where did this change go?


Many small edits.


paranoia


don't rfork(RFNOTEG) because then you lose the ability to read from the console. damn. also, handle case where child exits before fork returns in parent. have to record that sigchld was seen and then run the handler later.


add _procwakeupandunlock to help ease locking contention on Linux 2.4.


better handling


restore old plan 9 property that when the last thread exits the main proc, the remaining program ends up in the background and the program appears to have exited.