Project

General

Profile

Actions

Bug #2420

closed

Use pthread_sigmask instead of sigprogmask for signal handling

Added by Maurizio Abba over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

According to http://man7.org/linux/man-pages/man2/sigprocmask.2.html sigprogmask behavior is undefined in multithreaded environment. It should be substituted by phtread_sigmask.

Furthermore, instead of blocking the handling of SIGUSR2 after the starting of each function, we can just block handling before starting the various threads and re-enabling it afterward. In this way, only the main thread will be able to react to sig USR2

Actions #1

Updated by Andreas Herz over 3 years ago

  • Target version set to TBD
Actions #2

Updated by Victor Julien over 3 years ago

  • Status changed from Assigned to Closed
  • Target version changed from TBD to 4.1beta1
Actions

Also available in: Atom PDF