summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch')
-rw-r--r--meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch b/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
new file mode 100644
index 0000000000..54d64351d7
--- /dev/null
+++ b/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
@@ -0,0 +1,10 @@
1--- a/acpid.c
2+++ b/acpid.c
3@@ -307,6 +307,7 @@ main(int argc, char **argv)
4 non_root_clients++;
5 }
6 fcntl(cli_fd, F_SETFD, FD_CLOEXEC);
7+ fcntl(cli_fd, F_SETFL, O_NONBLOCK);
8 snprintf(buf, sizeof(buf)-1, "%d[%d:%d]",
9 creds.pid, creds.uid, creds.gid);
10 acpid_add_client(cli_fd, buf);