aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pserve.c
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-12/+12
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>
2018-03-239pserve: fix memory leak in warningRay Lai1-0/+2
2010-12-07delete 9P2000.uRuss Cox1-145/+21
thanks to Erik Quanstrom R=rsc http://codereview.appspot.com/3469042
2009-12-109pserve: roll back changeset 3118 - broke ssh-agent talking to factotumRuss Cox1-53/+1
2009-11-30Related to issueMichael Teichgräber1-0/+53
http://bitbucket.org/rsc/plan9port/issue/38/ This patch tries to make 9pserve work again with 9P2000 clients, in case the server handled by 9pserve expects 9P2000.u. (Since changeset http://bitbucket.org/rsc/plan9port/changeset/d9843471f0bc/ servers using srv() stop communicating after they received a 9P2000 msg that has a different .u definition.) Tattach, Tauth and Tcreate 9P2000 messages will be translated now, if neccessary, to 9P2000.u by growing them to the new size, and providing the missing (default) values. The code of the first two message types has been tested with drawterm on linux (dialing factotum), and mounts from within 9vx to plan9port's factotum and dossrv. The code for Tcreate couldn't be tested due to lack of file servers both speaking 9P2000.u and allowing file creation. R=rsc_swtch, rsc CC=codebot http://codereview.appspot.com/151052
2008-06-119pserve: add -c optionRuss Cox1-2/+11
2007-10-129pserve: add -n flag to reject auth by clientsRuss Cox1-1/+9
2007-08-289pserve: delete from correct hash slot (fix infinite loop)Russ Cox1-1/+1
2007-08-229pserve: fix a new race involving assert(c->nmsg == 0).Russ Cox1-3/+3
Just like outputthread can have processed the message but not yet called msgput, the same is true of the connoutthread, so we cannot check c->nmsg until after the connoutthread has shut down gracefully.
2007-08-229pserve: fix races causing assert(c->nmsg == 0) to fail.Russ Cox1-26/+36
1. Could happen that connoutthread sends c->outq a nil just before the regular input handler sends c->outq a real message. When the connoutthread gets the nil it will free c->outq, leaving the real message unprocessed. 2. Could happen that the outputthread writes a message body to the remote 9P server and then a response comes in and then the connection gets torn down, all before the outputthread manages to call msgput(m). Thanks to David Swasey for identifying this scenario. Also change yield() loop into explicit communication. Also remove dead code involving hungup queues.
2007-06-18ignore window resize; should be elsewherersc1-0/+2
2006-05-27use same name that srv.c doesrsc1-3/+1
2006-05-04paranoia about extensionrsc1-1/+1
2006-05-04paranoia about extensionrsc1-1/+6
2006-04-21darwinrsc1-0/+2
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc1-7/+7
2006-03-03change Tcreate message in 9P2000.ursc1-1/+7
2006-02-03fix offsetsrsc1-3/+19
2005-11-219P2000.u fixes (Lucho Ionkov)rsc1-4/+15
2005-11-12x11, used, etc.rsc1-11/+18
2005-09-13Signedness.rsc1-3/+3
2005-09-13Signedness bugs for Mac OS X.rsc1-2/+3
2005-09-13Add 9P2000.u extensions.rsc1-15/+135
2005-07-27use correct type for NOFID (sunos)rsc1-1/+1
2005-03-21add srv -a optionrsc1-19/+95
2005-03-18add verbose9pserve environment variable; fix afid refrsc1-1/+6
2005-03-18ignore tstprsc1-1/+3
2005-02-11bug fixes; quieterrsc1-3/+3
2005-01-17do not call exits in threaded programsrsc1-1/+1
2005-01-06more precision on timersc1-2/+7
2005-01-04more debuggingrsc1-82/+149
2004-12-28remove debugging printrsc1-1/+0
2004-12-28remove race between openfdthread and connoutthread msgput,rsc1-1/+8
so that openfd'ed fids always get clunked properly.
2004-12-28use threaddaemonizersc1-14/+8
2004-12-27use new thread libraryrsc1-153/+1
2004-03-25Today's changes.rsc1-1/+1
More changes.
2004-03-05Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.rsc1-3/+5
Add debugging to fdwait. Rewrite getcallerpc on PowerMac to be correct.
2004-03-02Long-standing stability bugs fixed in 9pserve.rsc1-19/+42
Update win to use acme interface directly instead of via pipes. Add comment to pipe about lack of message boundaries.
2004-03-02Tweaks for the Macintosh.rsc1-1/+0
2004-02-29Small tweaks to make things build again.rsc1-1/+1
2004-02-29Fighting the good fight.rsc1-116/+68
Move libfmt, libutf into subdirectories of lib9. Add poll-based socket i/o to libthread, so that we can avoid using multiple procs when possible, thus removing dependence on crappy pthreads implementations. Convert samterm, acme to the single-proc libthread. Bring libcomplete, acme up-to-date w.r.t. Plan 9 distribution.
2003-12-17Tweaks to various bits.rsc1-23/+44
Until I hear otherwise, Refs aren't used enough to merit their own assembly. They are now implemented with locks.
2003-12-11Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc1-32/+425
with them.
2003-12-09check everything in so i can move to linux and valgrind.rsc1-60/+409
2003-12-06File system stuff.rsc1-0/+597