diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-21 18:52:46 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-21 18:52:46 +0000 |
commit | 84dc067ee69533534a9e79359f17ab337f2a37e1 (patch) | |
tree | cc4ae84cd18c0939b8aa8be34849e68b026cef4c /sdpd/server.c | |
parent | 6561447cafc0b9a857094c8aa43c0aeb0aa7adb2 (diff) |
Only create watch if Unix socket can be created
Diffstat (limited to 'sdpd/server.c')
-rw-r--r-- | sdpd/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdpd/server.c b/sdpd/server.c index eeda8a86..6e632237 100644 --- a/sdpd/server.c +++ b/sdpd/server.c @@ -232,7 +232,7 @@ int start_sdp_server(uint16_t mtu, uint32_t flags) g_io_add_watch(l2cap_io, G_IO_IN, io_accept_event, &l2cap_sock); - if (compat) { + if (compat && unix_sock > fileno(stderr)) { unix_io = g_io_channel_unix_new(unix_sock); g_io_channel_set_close_on_unref(unix_io, TRUE); |