projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70a9373
)
udevd: warn if we receive SIGCHLD from untracked worker
author
Tom Gundersen
<teg@jklm.no>
Fri, 24 Apr 2015 16:04:57 +0000
(18:04 +0200)
committer
Tom Gundersen
<teg@jklm.no>
Fri, 24 Apr 2015 17:13:48 +0000
(19:13 +0200)
src/udev/udevd.c
patch
|
blob
|
history
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index
60e1ee6
..
6b5d99b
100644
(file)
--- a/
src/udev/udevd.c
+++ b/
src/udev/udevd.c
@@
-859,6
+859,7
@@
static void handle_signal(struct udev *udev, int signo) {
pid_t pid;
int status;
struct udev_list_node *loop, *tmp;
+ bool found = false;
pid = waitpid(-1, &status, WNOHANG);
if (pid <= 0)
@@
-869,6
+870,8
@@
static void handle_signal(struct udev *udev, int signo) {
if (worker->pid != pid)
continue;
+ else
+ found = true;
if (WIFEXITED(status)) {
if (WEXITSTATUS(status) == 0)
@@
-905,6
+908,9
@@
static void handle_signal(struct udev *udev, int signo) {
worker_unref(worker);
break;
}
+
+ if (!found)
+ log_warning("worker ["PID_FMT"] is unknown, ignoring", pid);
}
break;
case SIGHUP: