diff options
Diffstat (limited to 'meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch | 10 |
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 @@ +--- a/acpid.c ++++ b/acpid.c +@@ -307,6 +307,7 @@ main(int argc, char **argv) + non_root_clients++; + } + fcntl(cli_fd, F_SETFD, FD_CLOEXEC); ++ fcntl(cli_fd, F_SETFL, O_NONBLOCK); + snprintf(buf, sizeof(buf)-1, "%d[%d:%d]", + creds.pid, creds.uid, creds.gid); + acpid_add_client(cli_fd, buf); |