]> granicus.if.org Git - sudo/commit
When checking whether a signal is user-generated, compare si_code
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 31 Jul 2012 17:36:48 +0000 (13:36 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 31 Jul 2012 17:36:48 +0000 (13:36 -0400)
commit5e502bd6d6161d3c18ef2bb8a7fe2757594846af
tree092bba98bf7ac4f0edd0e6ec6561db9277b516be
parent9c321baa78bf750ec9d156185e31120112328a78
When checking whether a signal is user-generated, compare si_code
against SI_USER instead of <= 0 since on HP-UX, terminal-related
signals get a code of 0.
src/exec.c