diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-23 14:18:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-23 14:18:06 +0000 |
commit | 011d784f6c8d6c305e29bee1374a240ab9e4d7c7 (patch) | |
tree | d0edfed88a9d7fc92a4ef487f41007f0887d6f8f /src/microhttpd/test_upgrade.c | |
parent | c63ac7db4ebc38713aa5d5e2edf52c27200003d8 (diff) | |
download | libmicrohttpd-011d784f6c8d6c305e29bee1374a240ab9e4d7c7.tar.gz libmicrohttpd-011d784f6c8d6c305e29bee1374a240ab9e4d7c7.zip |
add return value checks for a few more system calls in testcases and examples
Diffstat (limited to 'src/microhttpd/test_upgrade.c')
-rw-r--r-- | src/microhttpd/test_upgrade.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 4a7868ec..dd226b85 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -77,10 +77,11 @@ test_upgrade (int flags, | |||
77 | (struct sockaddr *) &sa, | 77 | (struct sockaddr *) &sa, |
78 | sizeof (sa))) | 78 | sizeof (sa))) |
79 | abort (); | 79 | abort (); |
80 | pthread_create (&pt_client, | 80 | if (0 !- pthread_create (&pt_client, |
81 | NULL, | 81 | NULL, |
82 | &run_usock_client, | 82 | &run_usock_client, |
83 | &sock); | 83 | &sock)) |
84 | abort (); | ||
84 | if (0 == (flags & (MHD_USE_SELECT_INTERNALLY | | 85 | if (0 == (flags & (MHD_USE_SELECT_INTERNALLY | |
85 | MHD_USE_THREAD_PER_CONNECTION)) ) | 86 | MHD_USE_THREAD_PER_CONNECTION)) ) |
86 | run_mhd_loop (d, flags); | 87 | run_mhd_loop (d, flags); |