aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/systemd/files/replace_accpet4.patch
blob: d57b07af659c5af10d148398d1e7d3910fce9149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: git/src/logger.c
===================================================================
--- git.orig/src/logger.c	2010-06-15 23:02:38.212932153 +0200
+++ git/src/logger.c	2010-06-15 23:02:51.091686447 +0200
@@ -331,7 +331,7 @@
 
         assert(s);
 
-        if ((fd = accept4(server_fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC)) < 0)
+        if ((fd = accept(server_fd, NULL, NULL)) < 0)
                 return -errno;
 
         if (s->n_streams >= STREAMS_MAX) {
Index: git/src/socket.c
===================================================================
--- git.orig/src/socket.c	2010-06-15 23:02:16.269606647 +0200
+++ git/src/socket.c	2010-06-15 23:02:31.115021717 +0200
@@ -1201,7 +1201,7 @@
         if (w->socket_accept) {
                 for (;;) {
 
-                        if ((cfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK)) < 0) {
+                        if ((cfd = accept(fd, NULL, NULL)) < 0) {
 
                                 if (errno == EINTR)
                                         continue;