summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@com.bat.ru>2009-06-07 13:58:38 +0000
committerStefan Metzmacher <metze@samba.org>2009-06-08 13:20:52 +0200
commitab88f9017c977af3bb669a638f77552defff3fbf (patch)
tree8fa1e4d1a6c20eab9cab58009f95a6200c2eb964
parent16f5aedea0cd05113b5fbed06e140d7fedbad095 (diff)
downloadsamba-ab88f9017c977af3bb669a638f77552defff3fbf.tar.gz
samba-ab88f9017c977af3bb669a638f77552defff3fbf.tar.bz2
samba-ab88f9017c977af3bb669a638f77552defff3fbf.zip
Set SIGRTMIN to NSIG
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>
-rw-r--r--source3/include/includes.h2
-rw-r--r--source3/smbd/aio.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 3ce63bb7a1..b7ba70325c 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -795,7 +795,7 @@ enum flush_reason_enum {
#endif
#ifndef SIGRTMIN
-#define SIGRTMIN 32
+#define SIGRTMIN NSIG
#endif
#ifndef MAP_FILE
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c
index a5eea0a32e..c6f700f17a 100644
--- a/source3/smbd/aio.c
+++ b/source3/smbd/aio.c
@@ -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