chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manager: fix serialization counter
[elogind.git]
/
src
/
logger.c
diff --git
a/src/logger.c
b/src/logger.c
index faa6c9721f2f3752692124c9592f992ce609cba7..81196dbe00cd0e0734989d22149439bd5e040d14 100644
(file)
--- a/
src/logger.c
+++ b/
src/logger.c
@@
-37,10
+37,11
@@
#include "list.h"
#include "sd-daemon.h"
#include "tcpwrap.h"
#include "list.h"
#include "sd-daemon.h"
#include "tcpwrap.h"
+#include "def.h"
#define STREAMS_MAX 4096
#define SERVER_FD_MAX 16
#define STREAMS_MAX 4096
#define SERVER_FD_MAX 16
-#define TIMEOUT
((int) (5*60*MSEC_PER_
SEC))
+#define TIMEOUT
_MSEC ((int) (DEFAULT_EXIT_USEC/USEC_PER_M
SEC))
typedef struct Stream Stream;
typedef struct Stream Stream;
@@
-661,7
+662,7
@@
int main(int argc, char *argv[]) {
if ((k = epoll_wait(server.epoll_fd,
&event, 1,
if ((k = epoll_wait(server.epoll_fd,
&event, 1,
- server.n_streams <= 0 ? TIMEOUT : -1)) < 0) {
+ server.n_streams <= 0 ? TIMEOUT
_MSEC
: -1)) < 0) {
if (errno == EINTR)
continue;
if (errno == EINTR)
continue;