Fix compiler warnings on some platforms and provide a better method
of defeating gcc's warn_unused_result attribute.
This commit is contained in:
@@ -604,8 +604,7 @@ handler(int s)
|
||||
* The pipe is non-blocking, if we overflow the kernel's pipe
|
||||
* buffer we drop the signal. This is not a problem in practice.
|
||||
*/
|
||||
if (write(signal_pipe[1], &signo, sizeof(signo)) == -1)
|
||||
/* shut up glibc */;
|
||||
ignore_result(write(signal_pipe[1], &signo, sizeof(signo)));
|
||||
}
|
||||
|
||||
#ifdef SA_SIGINFO
|
||||
@@ -626,8 +625,7 @@ handler_nofwd(int s, siginfo_t *info, void *context)
|
||||
* The pipe is non-blocking, if we overflow the kernel's pipe
|
||||
* buffer we drop the signal. This is not a problem in practice.
|
||||
*/
|
||||
if (write(signal_pipe[1], &signo, sizeof(signo)) == -1)
|
||||
/* shut up glibc */;
|
||||
ignore_result(write(signal_pipe[1], &signo, sizeof(signo)));
|
||||
}
|
||||
}
|
||||
#endif /* SA_SIGINFO */
|
||||
|
Reference in New Issue
Block a user