From: sgunderson@bigfoot.com <> Date: Wed, 31 Jan 2007 16:37:15 +0000 (+0100) Subject: Fix error detection for pthread_create(). X-Git-Url: https://git.sesse.net/?p=jam;a=commitdiff_plain;h=b7508368183e1400d4ea6cc4e9e0515880598003 Fix error detection for pthread_create(). --- diff --git a/jam.c b/jam.c index e772fd9..8de0a4d 100644 --- a/jam.c +++ b/jam.c @@ -86,7 +86,7 @@ int main() exit(1); } - if (pthread_create(&thread, NULL, receiver_worker, (void *)sock) == -1) { + if (pthread_create(&thread, NULL, receiver_worker, (void *)sock) != 0) { perror("pthread_create()"); exit(1); }