aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pserve.c
Commit message (Collapse)AuthorAgeFilesLines
* libthread: add threadmaybackgroundRuss Cox2020-12-301-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.
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-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>
* 9pserve: fix memory leak in warningRay Lai2018-03-231-0/+2
|
* delete 9P2000.uRuss Cox2010-12-071-145/+21
| | | | | | | thanks to Erik Quanstrom R=rsc http://codereview.appspot.com/3469042
* 9pserve: roll back changeset 3118 - broke ssh-agent talking to factotumRuss Cox2009-12-101-53/+1
|
* Related to issueMichael Teichgräber2009-11-301-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
* 9pserve: add -c optionRuss Cox2008-06-111-2/+11
|
* 9pserve: add -n flag to reject auth by clientsRuss Cox2007-10-121-1/+9
|
* 9pserve: delete from correct hash slot (fix infinite loop)Russ Cox2007-08-281-1/+1
|
* 9pserve: fix a new race involving assert(c->nmsg == 0).Russ Cox2007-08-221-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.
* 9pserve: fix races causing assert(c->nmsg == 0) to fail.Russ Cox2007-08-221-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.
* ignore window resize; should be elsewherersc2007-06-181-0/+2
|
* use same name that srv.c doesrsc2006-05-271-3/+1
|
* paranoia about extensionrsc2006-05-041-1/+1
|
* paranoia about extensionrsc2006-05-041-1/+6
|
* darwinrsc2006-04-211-0/+2
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-7/+7
|
* change Tcreate message in 9P2000.ursc2006-03-031-1/+7
|
* fix offsetsrsc2006-02-031-3/+19
|
* 9P2000.u fixes (Lucho Ionkov)rsc2005-11-211-4/+15
|
* x11, used, etc.rsc2005-11-121-11/+18
|
* Signedness.rsc2005-09-131-3/+3
|
* Signedness bugs for Mac OS X.rsc2005-09-131-2/+3
|
* Add 9P2000.u extensions.rsc2005-09-131-15/+135
|
* use correct type for NOFID (sunos)rsc2005-07-271-1/+1
|
* add srv -a optionrsc2005-03-211-19/+95
|
* add verbose9pserve environment variable; fix afid refrsc2005-03-181-1/+6
|
* ignore tstprsc2005-03-181-1/+3
|
* bug fixes; quieterrsc2005-02-111-3/+3
|
* do not call exits in threaded programsrsc2005-01-171-1/+1
|
* more precision on timersc2005-01-061-2/+7
|
* more debuggingrsc2005-01-041-82/+149
|
* remove debugging printrsc2004-12-281-1/+0
|
* remove race between openfdthread and connoutthread msgput,rsc2004-12-281-1/+8
| | | | so that openfd'ed fids always get clunked properly.
* use threaddaemonizersc2004-12-281-14/+8
|
* use new thread libraryrsc2004-12-271-153/+1
|
* Today's changes.rsc2004-03-251-1/+1
| | | | More changes.
* Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.rsc2004-03-051-3/+5
| | | | | | Add debugging to fdwait. Rewrite getcallerpc on PowerMac to be correct.
* Long-standing stability bugs fixed in 9pserve.rsc2004-03-021-19/+42
| | | | | Update win to use acme interface directly instead of via pipes. Add comment to pipe about lack of message boundaries.
* Tweaks for the Macintosh.rsc2004-03-021-1/+0
|
* Small tweaks to make things build again.rsc2004-02-291-1/+1
|
* Fighting the good fight.rsc2004-02-291-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.
* Tweaks to various bits.rsc2003-12-171-23/+44
| | | | | Until I hear otherwise, Refs aren't used enough to merit their own assembly. They are now implemented with locks.
* Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc2003-12-111-32/+425
| | | | with them.
* check everything in so i can move to linux and valgrind.rsc2003-12-091-60/+409
|
* File system stuff.rsc2003-12-061-0/+597