diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-08 01:17:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-08 01:17:47 +0200 |
commit | 4610de5022f4af31dbe86d244c272426dffd9fd8 (patch) | |
tree | a5ab2d8873baa50bf266cce20a1851acbd1793ba /shell-completion | |
parent | 07fa00f9d9f4bcedc2289680b6d39f9b0815f577 (diff) |
inspawn: switch from SOCK_DGRAM to SOCK_SEQPACKET for internal socketpairs
SOCK_DGRAM and SOCK_SEQPACKET have very similar semantics when used with
socketpair(). However, SOCK_SEQPACKET has the advantage of knowing a
hangup concept, since it is inherently connection-oriented.
Since we use socket pairs to communicate between the nspawn main process
and the nspawn child process, where the child might die abnormally it's
interesting to us to learn about this via hangups if the child side of
the pair is closed. Hence, let's switch to SOCK_SEQPACKET for these
internal communication sockets.
Fixes #956.
Diffstat (limited to 'shell-completion')
0 files changed, 0 insertions, 0 deletions