aboutsummaryrefslogtreecommitdiff
path: root/server.c (follow)
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' into async-ptmxDaniel Eklöf2019-11-03-1/+1
|\
| * server: FD_CLOEXEC is a file descriptor flag, not a file status flagDaniel Eklöf2019-11-03-1/+1
| |
* | misc: fdm already logs failuresDaniel Eklöf2019-11-02-4/+1
|/
* server: server_destroy(): unlink UNIX socketDaniel Eklöf2019-11-02-0/+2
|
* server: use a non-blocking socket when trying to connectDaniel Eklöf2019-11-02-4/+23
| | | | | | | | | | | | | | When checking of a 'foot --server' instance is already running, we try to connect to the UNIX socket we're planning on listening on. In most cases, this will fail hard and fast. But under certain circumstances, we can get stuck in connect() waiting for a connection timeout. Since it should be possible to establish a connection immediately *if* there's someone actually listening on the socket, rely on the fact that connect() will fail with a EINPROGRESS if a connection can *not* be established immediately (and thus no one is listening on it).
* server: don't get stuck in read() if TERM length is 0Daniel Eklöf2019-11-02-2/+4
|
* server: don't get stuck in read() if length of argv argument is 0Daniel Eklöf2019-11-02-0/+3
|
* server: purge shm buffers when terminal is destroyedDaniel Eklöf2019-11-01-0/+6
|
* server: add debug logging of client argc/argvDaniel Eklöf2019-11-01-0/+4
|
* client/server: add -t,--term to footclientDaniel Eklöf2019-11-01-1/+15
|
* term_init(): initialize slave TERM from term_init() argumentDaniel Eklöf2019-11-01-2/+2
|
* server: implement a --server modeDaniel Eklöf2019-11-01-0/+310
In this mode, foot listens on a UNIX socket and creates terminal windows when clients connect. A connecting client sends argc/argv to the server, and the server instantiates a new terminal window. When the terminal window is closed, the exit code is sent back to the client.