diff options
author | Tom Gundersen <teg@jklm.no> | 2015-05-03 16:06:45 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-05-03 16:06:45 -0400 |
commit | adfa2ca4d5a02b2e8b7b1a4ec2e71c2295d17b1e (patch) | |
tree | a04c30b8824ab77b6a94e752f61977bd7baaaded /src/udev | |
parent | 93fc111c3c701a588f6ba7c39e514f8ffec425a4 (diff) |
udevd: worker - warn if unknown worker returns
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev')
-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 17b29818f2..b916b755dd 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -602,6 +602,7 @@ static void worker_returned(int fd_worker) { ssize_t size; struct ucred *ucred = NULL; struct udev_list_node *loop; + bool found = false; memzero(&iovec, sizeof(struct iovec)); iovec.iov_base = &msg; @@ -643,6 +644,8 @@ static void worker_returned(int fd_worker) { if (worker->pid != ucred->pid) continue; + else + found = true; /* worker returned */ if (worker->event) { @@ -655,6 +658,9 @@ static void worker_returned(int fd_worker) { worker_unref(worker); break; } + + if (!found) + log_warning("unknown worker ["PID_FMT"] returned", ucred->pid); } } |