Mercurial > hg
diff hgext/patchbomb.py @ 22994:840be5ca03e1
cmdserver: add service that listens on unix domain socket and forks process
Typical use case of 'unix' mode is a background hg daemon.
$ hg serve --cmdserver unix --cwd / -a /tmp/hg-`id -u`.sock
Unlike 'pipe' mode in which parent process keeps stdio channel, 'unix' server
can be detached. So clients can freely connect and disconnect from server,
saving Python start-up time.
It might be better to write "--cmdserver socket -a unix:/sockpath" instead
of "--cmdserver unix -a /sockpath" in case hgweb gets the ability to listen
on unix domain socket.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 04 Oct 2014 16:46:50 +0900 |
parents | 5f98ad8fb8d9 |
children | 122f5c3f3308 |