diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-11 18:21:26 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-11 18:21:26 +0200 |
commit | adda4c682ad2c56fc091222be3bd94fa817013b9 (patch) | |
tree | a26ef7d9a817356b4b111f24b42208a116a1a14c /libudev | |
parent | 405c307a72af520a8aba5609112a8c3a2b8a42a3 (diff) |
udevd: make sure a worker finishes event handling before exiting
Persistent network rules write out new rules files. When rules change,
we need to kill all workers to update the in-memory copy of the rules.
We need to make sure, that a worker finshes its work for all device
messages it has accepted, before it exits after a SIGTERM from the main
process.
Diffstat (limited to 'libudev')
-rw-r--r-- | libudev/libudev-util-private.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c index 1a37490a9e..5f5f4c1d89 100644 --- a/libudev/libudev-util-private.c +++ b/libudev/libudev-util-private.c @@ -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; } } |