]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevd: don't unref worker objects on SIGSTOP/SIGCONT
authorTom Gundersen <teg@jklm.no>
Fri, 24 Apr 2015 16:35:58 +0000 (18:35 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 24 Apr 2015 17:13:48 +0000 (19:13 +0200)
We should not be receiving these anyway, but let's be correct.

src/udev/udevd.c

index 6b5d99b6b0b430baee8b78b4cd6f4069f24001ea..a84b407dedccc15d7a830ef3ed2c5d1dad355e2a 100644 (file)
@@ -883,8 +883,10 @@ static void handle_signal(struct udev *udev, int signo) {
                                                     pid, WTERMSIG(status), strsignal(WTERMSIG(status)));
                                 } else if (WIFSTOPPED(status)) {
                                         log_info("worker ["PID_FMT"] stopped", pid);
+                                        break;
                                 } else if (WIFCONTINUED(status)) {
                                         log_info("worker ["PID_FMT"] continued", pid);
+                                        break;
                                 } else {
                                         log_warning("worker ["PID_FMT"] exit with status 0x%04x", pid, status);
                                 }