mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 20:07:56 -04:00
correctly test against SIG_ERR
svn:r170
This commit is contained in:
parent
e1759c7bbd
commit
fbee901e23
@ -47,7 +47,7 @@ main (int argc, char **argv)
|
||||
{
|
||||
struct event ev;
|
||||
|
||||
if (signal(SIGPIPE, SIG_IGN) == SIG_IGN)
|
||||
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
|
||||
return (1);
|
||||
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user