Quiet gcc warnings on glibc systems that use warn_unused_result for
write(2).
This commit is contained in:
@@ -468,7 +468,8 @@ handler(int 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.
|
||||||
*/
|
*/
|
||||||
(void)write(signal_pipe[1], &signo, sizeof(signo));
|
if (write(signal_pipe[1], &signo, sizeof(signo)) == -1)
|
||||||
|
/* shut up glibc */;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user