We write an unsigned char, not an int, to the signal pipe.

This commit is contained in:
Todd C. Miller
2014-08-22 11:06:05 -06:00
parent a8f63191ef
commit db494700d6

View File

@@ -96,8 +96,10 @@ restore_signals(void)
} }
static void static void
sudo_handler(int signo) sudo_handler(int s)
{ {
unsigned char signo = (unsigned char)s;
/* /*
* The pipe is non-blocking, if we overflow the kernel's pipe * The pipe is non-blocking, if we overflow the kernel's pipe
* buffer we drop the signal. This is not a problem in practice. * buffer we drop the signal. This is not a problem in practice.