Commit Briefs


Russ Cox

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.


Russ Cox

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.


Dan Cross

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>


rsc

OS X Tiger changes




rsc

too big fd


rsc

where did this change go?


rsc

Many small edits.


rsc

paranoia


rsc

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.


rsc

add _procwakeupandunlock

to help ease locking contention on Linux 2.4.


rsc

better handling


rsc

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.