]> err.no Git - systemd/commitdiff
udevd: log signal number when spawned processes fail
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 20 Apr 2011 16:36:01 +0000 (18:36 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 20 Apr 2011 16:36:01 +0000 (18:36 +0200)
udev/udev-event.c

index a8dfff48bf0a3ce646bf1a3419f7a70552ff44b2..ef21ce8f6b1a5d774309226586fdbd49cf47c56b 100644 (file)
@@ -684,6 +684,9 @@ static int spawn_wait(struct udev_event *event, const char *cmd, pid_t pid)
                                        info(udev, "'%s'[%u] returned with exitcode %i\n", cmd, pid, WEXITSTATUS(status));
                                        if (WEXITSTATUS(status) != 0)
                                                err = -1;
+                               } else if (WIFSIGNALED(status)) {
+                                       err(udev, "'%s'[%u] terminated by signal %i\n", cmd, pid, WTERMSIG(status));
+                                       err = -1;
                                } else {
                                        err(udev, "'%s'[%u] unexpected exit with status 0x%04x\n", cmd, pid, status);
                                        err = -1;