blob: cc0de1e8fe55f4238e3d0a687c1d0e1ced98c393 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- daemon/gdm-net.c.orig Mon Oct 1 12:37:53 2001
+++ daemon/gdm-net.c Mon Oct 1 12:37:34 2001
@@ -156,7 +156,12 @@
if ( ! conn->writable)
return FALSE;
+#ifndef __FreeBSD__
if (send (conn->fd, str, strlen (str), MSG_NOSIGNAL) < 0)
+#else
+ /* According to send(2), FreeBSD doesn't return SIGPIPE */
+ if (send (conn->fd, str, strlen (str), 0) < 0)
+#endif
return FALSE;
else
return TRUE;
|