]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
eloop: Add rationale for ELOOP_NSIGNALS
authorRoy Marples <roy@marples.name>
Tue, 16 Jun 2020 16:31:47 +0000 (17:31 +0100)
committerRoy Marples <roy@marples.name>
Tue, 16 Jun 2020 16:31:47 +0000 (17:31 +0100)
src/eloop.c

index 7b0de03daeb55981ddca88c91aec455a5fdb7a0e..d43dbe8340ad9d6798d0036b37311fe49ab721ac 100644 (file)
 #include <stdio.h>
 #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.