Set SIGRTMIN to NSIG
authorTimur I. Bakeyev <timur@com.bat.ru>
Sun, 7 Jun 2009 13:58:38 +0000 (13:58 +0000)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Jun 2009 11:20:52 +0000 (13:20 +0200)
In the includes we define SIGRTMIN to 32 if it's not defined already. This
value could be fairly low and it's better to use NSIG(number of defined
signals) as the lower mark for the available signals.

We have similar defenition in the source3/smbd/aio.c, which can be safely
removed, as it comes from includes.h then.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/include/includes.h
source3/smbd/aio.c

index 3ce63bb7a157a6e9e52e3e4502bd26c8ac6b1903..b7ba70325c21fe1942d16e6b956c9767a0a52844 100644 (file)
@@ -795,7 +795,7 @@ enum flush_reason_enum {
 #endif
 
 #ifndef SIGRTMIN
-#define SIGRTMIN 32
+#define SIGRTMIN NSIG
 #endif
 
 #ifndef MAP_FILE
index a5eea0a32e703709a9ab0f66fab1b7683e6bb1e0..c6f700f17a0901b0fb5856579ede1a22046dabfc 100644 (file)
@@ -25,9 +25,6 @@
 
 /* The signal we'll use to signify aio done. */
 #ifndef RT_SIGNAL_AIO
-#ifndef SIGRTMIN
-#define SIGRTMIN       NSIG
-#endif
 #define RT_SIGNAL_AIO  (SIGRTMIN+3)
 #endif