[ 
https://issues.apache.org/jira/browse/TS-4890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15515929#comment-15515929
 ] 

Masato Gosui edited comment on TS-4890 at 9/23/16 9:40 AM:
-----------------------------------------------------------

As we cannot use pthread_mutex_unlock() in signal handler, the most reasonable 
solution might be to change the type of shutdown_event_system to "volatile 
sig_atomic_t".

We need to make the variable both thread-safe and signal-safe.


was (Author: mgosui):
As we cannot use pthread_mutex_unlock in signal handler, the most reasonable 
solution might be to change the type of shutdown_event_system to "volatile 
sig_atomic_t".

> shutdown_event_system doesn't have lock even though referenced by multiple 
> threads
> ----------------------------------------------------------------------------------
>
>                 Key: TS-4890
>                 URL: https://issues.apache.org/jira/browse/TS-4890
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Masato Gosui
>
> Global variable shutdown_event_system (declared in 
> iocore/eventsystem/UnixEThread.cc) doesn't have lock even though the variable 
> can be referenced by multiple threads (e.g. threads executing 
> Thread::execute()).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to