chiark / gitweb /
uslip/uslip.c: Shut the server down on `SIGTERM'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 17 Apr 2017 23:39:24 +0000 (00:39 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 17:19:08 +0000 (18:19 +0100)
commitaec8bcc80d152089426e63cacf455cd456787036
tree81c3d2a347501c11575d4f0c766e7166ee0723f4
parent1b7185f555d06faa9831c3b2345ddd9e88f03edf
uslip/uslip.c: Shut the server down on `SIGTERM'.

The tripe(8) server sends `SIGTERM' to its SLIP tunnel helpers when it
shuts down interfaces.  This causes us to leave behind dead Unix-domain
sockets, which is bad.  Catch `SIGTERM' so that we can clean up
properly -- and so that we can let clients pick up any remaining packets
we might still have queued.
uslip/uslip.c