mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
udevd: warn if we receive SIGCHLD from untracked worker
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
2cf24b3978
commit
75e930ed64
@ -1134,6 +1134,7 @@ int main(int argc, char *argv[]) {
|
||||
struct epoll_event ep_netlink = { .events = EPOLLIN };
|
||||
struct epoll_event ep_worker = { .events = EPOLLIN };
|
||||
int r = 0, one = 1;
|
||||
bool found = false;
|
||||
|
||||
udev = udev_new();
|
||||
if (!udev) {
|
||||
@ -1425,6 +1426,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (worker->state != WORKER_RUNNING)
|
||||
continue;
|
||||
else
|
||||
found = true;
|
||||
|
||||
assert(event);
|
||||
|
||||
@ -1491,6 +1494,9 @@ int main(int argc, char *argv[]) {
|
||||
if (event_queue_insert(dev) < 0)
|
||||
udev_device_unref(dev);
|
||||
}
|
||||
|
||||
if (!found)
|
||||
log_warning("worker ["PID_FMT"] is unknown, ignoring", getpid());
|
||||
}
|
||||
|
||||
/* start new events */
|
||||
|
Loading…
Reference in New Issue
Block a user