inotify: Block signals in the inotify thread.

Otherwise, we may get invalid reads due to double-handling of signals.
This commit is contained in:
Justin Maggard
2015-12-21 11:43:38 -08:00
parent d097d3c02d
commit c985eee9c7
3 changed files with 10 additions and 6 deletions

View File

@ -96,10 +96,10 @@ process_fork(struct client_cache_s *client)
pid_t pid = fork();
if (pid > 0)
{
number_of_children++;
if (client)
client->connections++;
add_process_info(pid, client);
number_of_children++;
}
return pid;