diff options
Diffstat (limited to 'meta/recipes-bsp/acpid/acpid')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid/acpid.service | 10 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-bsp/acpid/acpid/acpid.service b/meta/recipes-bsp/acpid/acpid/acpid.service new file mode 100644 index 0000000000..f70e740965 --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid/acpid.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=ACPI Event Daemon | ||
3 | After=syslog.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=@SBINDIR@/acpid | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch b/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch deleted file mode 100644 index 54d64351d7..0000000000 --- a/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
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); | ||