]> git.sur5r.net Git - i3/i3/commit
Properly initialize sigaction struct 2891/head
authorhwangcc23 <hwangcc@csie.nctu.edu.tw>
Thu, 31 Aug 2017 14:48:33 +0000 (22:48 +0800)
committerhwangcc23 <hwangcc@csie.nctu.edu.tw>
Thu, 31 Aug 2017 14:48:33 +0000 (22:48 +0800)
commit92b8196192a77bd39a76c966480047a76cf2b03f
tree08c374766454cd550e7445fd4bd828bdf2389afc
parent4dca8e6e0b7d061f6beedbac622019f2efaa960c
Properly initialize sigaction struct

The code in handle_signal() wasn't clearing the struct sigaction before passing it to sigaction().
This meant that we would block a random set of signals while executing the default handler, or jump to the uninitialized __sa_sigaction__ (instead of sa_handler).
Initialize properly as we do in setup_signal_handler().
src/sighandler.c