diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-24 19:29:53 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-04-24 20:18:49 +0200 |
commit | c0bbfd72e7437f8b2e6d64efa56f2705fceb0fcc (patch) | |
tree | 459933a1b72478ac8f2e9e6649749116894814e9 | |
parent | 979558f3227cc0242c4b7fd4a9978e2562ed473e (diff) |
udevd: worker - warn if unknown worker returns
-rw-r--r-- | src/udev/udevd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 27caaf14a0..339e9c4570 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -615,6 +615,7 @@ static void worker_returned(int fd_worker) { ssize_t size; struct ucred *ucred = NULL; struct udev_list_node *loop; + bool found = false; size = recvmsg(fd_worker, &msghdr, MSG_DONTWAIT); if (size < 0) { @@ -646,6 +647,8 @@ static void worker_returned(int fd_worker) { if (worker->pid != ucred->pid) continue; + else + found = true; /* worker returned */ if (worker->event) { @@ -658,6 +661,9 @@ static void worker_returned(int fd_worker) { worker_unref(worker); break; } + + if (!found) + log_warning("unknown worker ["PID_FMT"] returned", ucred->pid); } } |