Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcp: fix another data race (clang sanitizer)
  • Loading branch information
perexg committed Mar 8, 2016
1 parent a44061c commit df0ae1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tcp.c
Expand Up @@ -649,7 +649,8 @@ tcp_server_start(void *aux)
LIST_REMOVE(tsl, alink);
LIST_INSERT_HEAD(&tcp_server_join, tsl, jlink);
pthread_mutex_unlock(&global_lock);
tvh_write(tcp_server_pipe.wr, &c, 1);
if (atomic_get(&tcp_server_running))
tvh_write(tcp_server_pipe.wr, &c, 1);
return NULL;
}

Expand Down

0 comments on commit df0ae1e

Please sign in to comment.