summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-05-18 17:18:46 +0200
committerTom Gundersen <teg@jklm.no>2015-05-18 23:49:35 +0200
commit0561329d1f4e6634b3b20682b036c4f22e4b5b21 (patch)
tree26f3b5a01e90c7d362f949c2224707b515fee713
parent4fa4d885556af16fb945f9a9402e71077d5a4e4a (diff)
udevd: rename on_reque_{exit,reload} to on_sig{term,chld}
No functional change.
-rw-r--r--src/udev/udevd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index a641b16e8b..933b60cdd5 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1035,7 +1035,7 @@ static int on_inotify(sd_event_source *s, int fd, uint32_t revents, void *userda
return 1;
}
-static int on_request_exit(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) {
+static int on_sigterm(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) {
Manager *manager = userdata;
assert(manager);
@@ -1045,7 +1045,7 @@ static int on_request_exit(sd_event_source *s, const struct signalfd_siginfo *si
return 1;
}
-static int on_request_reload(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) {
+static int on_sighup(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) {
Manager *manager = userdata;
assert(manager);
@@ -1665,10 +1665,10 @@ int main(int argc, char *argv[]) {
switch (fdsi.ssi_signo) {
case SIGINT:
case SIGTERM:
- on_request_exit(NULL, &fdsi, manager);
+ on_sigterm(NULL, &fdsi, manager);
break;
case SIGHUP:
- on_request_reload(NULL, &fdsi, manager);
+ on_sighup(NULL, &fdsi, manager);
break;
case SIGCHLD:
on_sigchld(NULL, &fdsi, manager);