git.samba.org
/
ira
/
third_party.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86fee00
)
Another part of the fix for bug 6651 - smbd SIGSEGV when breaking oplocks. SA_INFO_QU...
author
Jeremy Allison
<jra@samba.org>
Thu, 3 Sep 2009 14:38:21 +0000
(07:38 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 9 Sep 2009 10:27:17 +0000
(12:27 +0200)
tevent/tevent_signal.c
patch
|
blob
|
history
diff --git
a/tevent/tevent_signal.c
b/tevent/tevent_signal.c
index b329f8c1e72ca73045f2f5abb5315c7373572fb6..ef9c0cf28877999b27d19323ae70018336a455c1 100644
(file)
--- a/
tevent/tevent_signal.c
+++ b/
tevent/tevent_signal.c
@@
-32,8
+32,12
@@
#define NUM_SIGNALS 64
-/* maximum number of SA_SIGINFO signals to hold in the queue */
-#define SA_INFO_QUEUE_COUNT 100
+/* maximum number of SA_SIGINFO signals to hold in the queue.
+ NB. This *MUST* be a power of 2, in order for the ring buffer
+ wrap to work correctly. Thanks to Petr Vandrovec <petr@vandrovec.name>
+ for this. */
+
+#define SA_INFO_QUEUE_COUNT 64
struct sigcounter {
uint32_t count;