OSDN Git Service

Delegate SIG_DFL on sigaction to libc.
authorDmitriy Ivanov <dimitry@google.com>
Fri, 3 Apr 2015 01:30:22 +0000 (18:30 -0700)
committerDimitry Ivanov <dimitry@google.com>
Fri, 3 Apr 2015 17:14:19 +0000 (17:14 +0000)
commit34a0c208e7f808270e3e2189ae1a198b3fa8ed2e
treee4b9eb58f934ed04bf1a3a82499c78fa7452bcd7
parenta68a7cf8f3a6fef22d71a14350176115cb13857f
Delegate SIG_DFL on sigaction to libc.

  In the case when user registers SIG_DFL hanlder
  sigchainlib's handler tends to go into infinite loop
  because the function handling signals resets signal
  using by calling to signchain's own implementation.

  This cl fixes the problem by passing sigcations with
  SIG_DFL to the next sigaction (usually libc's).

Bug: 19594886
Change-Id: I9eecf9afd1c7e6d1fe3cd1d4fc506383ecbebe04
sigchainlib/sigchain.cc