From: Roy Marples Date: Tue, 16 Jun 2020 16:31:47 +0000 (+0100) Subject: eloop: Add rationale for ELOOP_NSIGNALS X-Git-Tag: v9.1.3~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fbcfeda938e4f566b791c45dcc942e922abe63e;p=thirdparty%2Fdhcpcd.git eloop: Add rationale for ELOOP_NSIGNALS --- diff --git a/src/eloop.c b/src/eloop.c index 7b0de03d..d43dbe83 100644 --- a/src/eloop.c +++ b/src/eloop.c @@ -92,7 +92,13 @@ #include #endif -#define ELOOP_NSIGNALS 5 /* Allow a backlog of signals */ +/* + * Allow a backlog of signals. + * If you use many eloops in the same process, they should all + * use the same signal handler or have the signal handler unset. + * Otherwise the signal might not behave as expected. + */ +#define ELOOP_NSIGNALS 5 /* * time_t is a signed integer of an unspecified size.