The Samba-Bugzilla – Attachment 9994 Details for
Bug 10640
smbd is not responding - tevent_common_signal_handler() increments non-atomic variables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
FIX TEVENT_SIG_INCREMENT atomic
samba-3.6.19-TEVENT_SIG_INCREMENT-atomic.patch (text/plain), 453 bytes, created by
KAMEI Yutaka (mail address dead)
on 2014-05-29 08:57:20 UTC
(
hide
)
Description:
FIX TEVENT_SIG_INCREMENT atomic
Filename:
MIME Type:
Creator:
KAMEI Yutaka (mail address dead)
Created:
2014-05-29 08:57:20 UTC
Size:
453 bytes
patch
obsolete
>diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c >index cc7fb0a..1e282df 100644 >--- a/lib/tevent/tevent_signal.c >+++ b/lib/tevent/tevent_signal.c >@@ -44,7 +44,7 @@ struct tevent_sigcounter { > uint32_t seen; > }; > >-#define TEVENT_SIG_INCREMENT(s) (s).count++ >+#define TEVENT_SIG_INCREMENT(s) __sync_fetch_and_add(&((s).count), 1) > #define TEVENT_SIG_SEEN(s, n) (s).seen += (n) > #define TEVENT_SIG_PENDING(s) ((s).seen != (s).count) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10640
: 9994 |
10003
|
10162
|
10163