correctly test against SIG_ERR

svn:r170
This commit is contained in:
Niels Provos 2005-07-14 04:09:55 +00:00
parent e1759c7bbd
commit fbee901e23

View File

@ -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)