summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-09-18 11:01:48 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-09-18 11:14:14 -0700
commitbf3c374b1bb26e827ed6a1ea2fe72d20aacc2d68 (patch)
tree0a46ada67608572118b92989a96d92b828916e4d
parentf45b1e828409a517877fae9001fdfdb408a02b3d (diff)
weston-launch: Use SOCK_SEQPACKET for the launcher socket
This lets us detect hang-up when weston-launch dies and clean up properly.
-rw-r--r--src/weston-launch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weston-launch.c b/src/weston-launch.c
index fa9104d3..80c06a81 100644
--- a/src/weston-launch.c
+++ b/src/weston-launch.c
@@ -192,7 +192,7 @@ setup_pam(struct weston_launch *wl)
static int
setup_launcher_socket(struct weston_launch *wl)
{
- if (socketpair(AF_LOCAL, SOCK_DGRAM, 0, wl->sock) < 0)
+ if (socketpair(AF_LOCAL, SOCK_SEQPACKET, 0, wl->sock) < 0)
error(1, errno, "socketpair failed");
if (fcntl(wl->sock[0], F_SETFD, FD_CLOEXEC) < 0)