changeset 5370:ca830b3b9a58 draft

eloop: Add rationale for ELOOP_NSIGNALS
author Roy Marples <roy@marples.name>
date Tue, 16 Jun 2020 17:31:47 +0100
parents 978fd1d34b46
children 0c4a9b4da8e6
files src/eloop.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eloop.c	Tue Jun 16 17:21:20 2020 +0100
+++ b/src/eloop.c	Tue Jun 16 17:31:47 2020 +0100
@@ -92,7 +92,13 @@
 #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.