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:
f5853da
)
udevd: simplify sigterm check
author
Kay Sievers
<kay@vrfy.org>
Thu, 15 Aug 2013 17:51:08 +0000
(19:51 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Thu, 15 Aug 2013 17:55:32 +0000
(19:55 +0200)
src/udev/udevd.c
patch
|
blob
|
history
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index
7c6c5d6
..
fd799cc
100644
(file)
--- a/
src/udev/udevd.c
+++ b/
src/udev/udevd.c
@@
-314,13
+314,11
@@
static void worker_new(struct event *event)
udev_device_unref(dev);
dev = NULL;
- if (udev_event->sigterm) {
- udev_event_unref(udev_event);
- goto out;
- }
-
udev_event_unref(udev_event);
+ if (udev_event->sigterm)
+ goto out;
+
/* wait for more device messages from main udevd, or term signal */
while (dev == NULL) {
struct epoll_event ev[4];