diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ot_clean.c | 3 | ||||
| -rw-r--r-- | src/ot_fullscrape.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ot_clean.c b/src/ot_clean.c index 130bd2a..8eb1da2 100644 --- a/src/ot_clean.c +++ b/src/ot_clean.c | |||
| @@ -193,7 +193,8 @@ static pthread_t thread_id; | |||
| 193 | void clean_init(void) { | 193 | void clean_init(void) { |
| 194 | if (pipe(g_clean_pipe) == -1) | 194 | if (pipe(g_clean_pipe) == -1) |
| 195 | fprintf(stderr, "Warning: the cleaner has no pipe to be woken through and will take up to one sleep interval to stop.\n"); | 195 | fprintf(stderr, "Warning: the cleaner has no pipe to be woken through and will take up to one sleep interval to stop.\n"); |
| 196 | pthread_create(&thread_id, NULL, clean_worker, NULL); | 196 | if (pthread_create(&thread_id, NULL, clean_worker, NULL)) |
| 197 | exerr("Cannot create cleanup worker thread."); | ||
| 197 | } | 198 | } |
| 198 | 199 | ||
| 199 | void clean_deinit(void) { | 200 | void clean_deinit(void) { |
diff --git a/src/ot_fullscrape.c b/src/ot_fullscrape.c index 787b508..bbceb0b 100644 --- a/src/ot_fullscrape.c +++ b/src/ot_fullscrape.c | |||
| @@ -72,7 +72,8 @@ static void *fullscrape_worker(void *args) { | |||
| 72 | 72 | ||
| 73 | static pthread_t thread_id; | 73 | static pthread_t thread_id; |
| 74 | void fullscrape_init(void) { | 74 | void fullscrape_init(void) { |
| 75 | pthread_create( &thread_id, NULL, fullscrape_worker, NULL ); | 75 | if (pthread_create(&thread_id, NULL, fullscrape_worker, NULL)) |
| 76 | exerr("Cannot create fullscrape worker thread."); | ||
| 76 | } | 77 | } |
| 77 | 78 | ||
| 78 | void fullscrape_deinit(void) { | 79 | void fullscrape_deinit(void) { |
