aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plumb
AgeCommit message (Collapse)AuthorFilesLines
2020-12-30libthread: add threadmaybackgroundRuss Cox1-0/+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.
2020-01-10Trivial changes: whitespace and modes.Dan Cross1-2/+2
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>
2019-10-29plumber: add -f (foreground) option (#288)Jason Felice3-4/+11
In MacOS, services run by launchd must run in the foreground, since launchd manages forking and other resources.
2019-09-19plumber: fix EOF detection on writes to rules file (#257)Fazlul Shahriar1-3/+3
Instead of checking Fcall.data==nil, check Fcall.count==0. The former check always fails after `gcc -O2` optimizations (gcc version 8.3.0). Also fix an out-of-bound read detected by valgrind: ``` ==31162== Invalid read of size 1 ==31162== at 0x11005E: morerules (rules.c:739) ==31162== by 0x110254: writerules (rules.c:775) ==31162== by 0x10D2FE: fsyswrite (fsys.c:848) ==31162== by 0x10C304: fsysproc (fsys.c:248) ==31162== by 0x112E8C: threadstart (thread.c:96) ==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so) ==31162== Address 0x4ea984a is 0 bytes after a block of size 250 alloc'd ==31162== at 0x483AD7B: realloc (vg_replace_malloc.c:826) ==31162== by 0x1196F3: p9realloc (malloc.c:53) ==31162== by 0x10BDFD: erealloc (plumber.c:124) ==31162== by 0x10FCD9: concat (rules.c:642) ==31162== by 0x10FCD9: concat (rules.c:635) ==31162== by 0x110230: writerules (rules.c:773) ==31162== by 0x10D2FE: fsyswrite (fsys.c:848) ==31162== by 0x10C304: fsysproc (fsys.c:248) ==31162== by 0x112E8C: threadstart (thread.c:96) ==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so) ``` Fixes #256
2012-05-15plumb: remove debugging printRuss Cox1-1/+0
R=rsc http://codereview.appspot.com/6210059
2010-10-07plumber: comment out bogus user name checkRuss Cox1-0/+2
R=rsc http://codereview.appspot.com/2295043
2008-04-17post9pservice: add extra arg to unmodified callsRuss Cox1-1/+1
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2-3/+3
2005-09-09NetBSD-macppc ctype needs uchars.rsc1-3/+3
2005-03-18add -9 for debuggingrsc1-0/+4
2005-01-13Many small edits.rsc1-3/+1
2005-01-11add $plan9 variablersc1-0/+5
2005-01-04do threading rightrsc2-26/+4
2005-01-04exit correctlyrsc1-7/+7
2005-01-04Goodbye SHORTLIBrsc1-1/+0
2004-12-28be like plan 9 plumberrsc1-3/+22
2004-12-28avoid use of an extra procrsc1-1/+1
2004-12-28FreeBSD tweaksrsc1-1/+2
2004-12-28use threaddaemonizersc1-12/+1
2004-12-26update to use new thread libraryrsc1-4/+9
2004-07-09Compare function pointers against 0 rather than nil.wkj1-1/+1
2004-04-19clean up when finished.rsc1-1/+0
don't set PLAN9 don't set PLAN9
2004-03-26SunOS can rot in hell.rsc1-16/+20
2004-03-25Today's changes.rsc3-4/+6
More changes.
2004-03-21Small tweaksrsc1-0/+2
Lots of new code imported.
2004-03-05Amazingly picky bug fixes from Valgrind.rsc2-1/+7
2004-03-05Various little fixes.rsc1-1/+1
2004-03-05Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.rsc1-1/+1
Add debugging to fdwait. Rewrite getcallerpc on PowerMac to be correct.
2004-02-29Various tweaks.rsc1-1/+1
2004-02-29Small tweaks to make things build again.rsc5-26/+21
2003-12-11Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc6-74/+60
with them.
2003-11-23make -> mkrsc1-16/+0
2003-11-23Plan 9 version, nothing tweaked yet.rsc7-0/+2596
2003-10-14Single-threaded plumber that can run "start" rules.rsc1-0/+16
Thanks to Caerwyn Jones.