From ef9eb0a8976140654827d479af1f4256fae6afe3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 14 Apr 2011 02:32:42 +0200 Subject: logger,initctl: use global exit timeout --- src/initctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/initctl.c') diff --git a/src/initctl.c b/src/initctl.c index 15da4593d0..dd743142fd 100644 --- a/src/initctl.c +++ b/src/initctl.c @@ -42,9 +42,10 @@ #include "special.h" #include "sd-daemon.h" #include "dbus-common.h" +#include "def.h" #define SERVER_FD_MAX 16 -#define TIMEOUT ((int) (10*MSEC_PER_SEC)) +#define TIMEOUT_MSEC ((int) (DEFAULT_EXIT_USEC/USEC_PER_MSEC)) typedef struct Fifo Fifo; @@ -388,7 +389,7 @@ int main(int argc, char *argv[]) { if ((k = epoll_wait(server.epoll_fd, &event, 1, - TIMEOUT)) < 0) { + TIMEOUT_MSEC)) < 0) { if (errno == EINTR) continue; -- cgit v1.2.3-54-g00ecf