FreeBSD Bugzilla – Attachment 93218 Details for
Bug 131080
Problem with signals in threads in lang/python
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 882 bytes, created by
Andriy Pylypenko
on 2009-01-28 13:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Andriy Pylypenko
Created:
2009-01-28 13:10:01 UTC
Size:
882 bytes
patch
obsolete
>Index: Python/thread_pthread.h >=================================================================== >--- Python/thread_pthread.h (revision 60447) >+++ Python/thread_pthread.h (working copy) >@@ -149,6 +149,7 @@ > { > pthread_t th; > int status; >+ sigset_t set, oset; > #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) > pthread_attr_t attrs; > #endif >@@ -178,6 +179,8 @@ > pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM); > #endif > >+ sigfillset(&set); >+ SET_THREAD_SIGMASK(SIG_BLOCK, &set, &oset); > status = pthread_create(&th, > #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) > &attrs, >@@ -187,6 +190,7 @@ > (void* (*)(void *))func, > (void *)arg > ); >+ SET_THREAD_SIGMASK(SIG_SETMASK, &oset, NULL); > > #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) > pthread_attr_destroy(&attrs);
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 131080
: 93218