projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f45b1e8
)
weston-launch: Use SOCK_SEQPACKET for the launcher socket
author
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 18 Sep 2013 18:01:48 +0000
(11:01 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 18 Sep 2013 18:14:14 +0000
(11:14 -0700)
This lets us detect hang-up when weston-launch dies and clean up properly.
src/weston-launch.c
patch
|
blob
|
history
diff --git
a/src/weston-launch.c
b/src/weston-launch.c
index
fa9104d
..
80c06a8
100644
(file)
--- 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)