1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00

udevd: rename on_reque_{exit,reload} to on_sig{term,chld}

No functional change.
This commit is contained in:
Tom Gundersen 2015-05-18 17:18:46 +02:00
parent 4fa4d88555
commit 0561329d1f

View File

@ -1035,7 +1035,7 @@ static int on_inotify(sd_event_source *s, int fd, uint32_t revents, void *userda
return 1; 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; Manager *manager = userdata;
assert(manager); assert(manager);
@ -1045,7 +1045,7 @@ static int on_request_exit(sd_event_source *s, const struct signalfd_siginfo *si
return 1; 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; Manager *manager = userdata;
assert(manager); assert(manager);
@ -1665,10 +1665,10 @@ int main(int argc, char *argv[]) {
switch (fdsi.ssi_signo) { switch (fdsi.ssi_signo) {
case SIGINT: case SIGINT:
case SIGTERM: case SIGTERM:
on_request_exit(NULL, &fdsi, manager); on_sigterm(NULL, &fdsi, manager);
break; break;
case SIGHUP: case SIGHUP:
on_request_reload(NULL, &fdsi, manager); on_sighup(NULL, &fdsi, manager);
break; break;
case SIGCHLD: case SIGCHLD:
on_sigchld(NULL, &fdsi, manager); on_sigchld(NULL, &fdsi, manager);