chiark / gitweb /
udevd: make sure a worker finishes event handling before exiting
[elogind.git] / libudev / libudev-util-private.c
index 1a37490a9e364d76d1f2d305cd05f198bad0526f..5f5f4c1d89f82e823c203500fc5cea44fcdc5dd6 100644 (file)
@@ -435,11 +435,11 @@ int util_run_program(struct udev *udev, const char *command, char **envp,
                }
                waitpid(pid, &status, 0);
                if (WIFEXITED(status)) {
-                       info(udev, "'%s' returned with status %i\n", argv[0], WEXITSTATUS(status));
+                       info(udev, "'%s' returned with exitcode %i\n", command, WEXITSTATUS(status));
                        if (WEXITSTATUS(status) != 0)
                                err = -1;
                } else {
-                       err(udev, "'%s' abnormal exit\n", command);
+                       err(udev, "'%s' unexpected exit with status 0x%04x\n", command, status);
                        err = -1;
                }
        }