aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/daemonize.c
Commit message (Collapse)AuthorAgeFilesLines
* libthread: use setpgid instead of setpgrpAnthony Sorace2021-04-221-1/+1
|
* libthread: call setpgrp in programs that will backgroundRuss Cox2021-01-141-0/+7
| | | | | | | 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 threadmaybackgroundRuss Cox2020-12-301-6/+6
| | | | | | | | 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.Dan Cross2020-01-101-3/+3
| | | | | | | | | 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 changesrsc2005-05-071-1/+6
|
* do not touch TSTP, TTIN, TTOUrsc2005-03-181-1/+1
|
* different fix for main proc bugrsc2005-02-141-1/+0
|
* too big fdrsc2005-01-161-3/+4
|
* where did this change go?rsc2005-01-141-1/+11
|
* Many small edits.rsc2005-01-131-2/+2
|
* paranoiarsc2005-01-111-1/+9
|
* don't rfork(RFNOTEG) because then you losersc2005-01-111-3/+23
| | | | | | | | 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 _procwakeupandunlockrsc2005-01-061-0/+12
| | | | | to help ease locking contention on Linux 2.4.
* better handlingrsc2005-01-041-8/+22
|
* restore old plan 9 property that when thersc2004-12-281-7/+14
| | | | | | last thread exits the main proc, the remaining program ends up in the background and the program appears to have exited.
* more freebsd workrsc2004-12-281-8/+5
|
* add threaddaemonizersc2004-12-281-0/+98