File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1211,7 +1211,7 @@ static int fsmonitor_run_daemon_1(struct fsmonitor_daemon_state *state)
1211
1211
* events.
1212
1212
*/
1213
1213
if (pthread_create (& state -> listener_thread , NULL ,
1214
- fsm_listen__thread_proc , state ) < 0 ) {
1214
+ fsm_listen__thread_proc , state )) {
1215
1215
ipc_server_stop_async (state -> ipc_server_data );
1216
1216
err = error (_ ("could not start fsmonitor listener thread" ));
1217
1217
goto cleanup ;
@@ -1222,7 +1222,7 @@ static int fsmonitor_run_daemon_1(struct fsmonitor_daemon_state *state)
1222
1222
* Start the health thread to watch over our process.
1223
1223
*/
1224
1224
if (pthread_create (& state -> health_thread , NULL ,
1225
- fsm_health__thread_proc , state ) < 0 ) {
1225
+ fsm_health__thread_proc , state )) {
1226
1226
ipc_server_stop_async (state -> ipc_server_data );
1227
1227
err = error (_ ("could not start fsmonitor health thread" ));
1228
1228
goto cleanup ;
Original file line number Diff line number Diff line change @@ -1019,7 +1019,7 @@ static void *run_thread(void *data)
1019
1019
sigset_t mask ;
1020
1020
sigemptyset (& mask );
1021
1021
sigaddset (& mask , SIGPIPE );
1022
- if (pthread_sigmask (SIG_BLOCK , & mask , NULL ) < 0 ) {
1022
+ if (pthread_sigmask (SIG_BLOCK , & mask , NULL )) {
1023
1023
ret = error ("unable to block SIGPIPE in async thread" );
1024
1024
return (void * )ret ;
1025
1025
}
You can’t perform that action at this time.
0 commit comments