diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index a3338b1d18..7b9e5eb562 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2480,6 +2480,8 @@ start_daemon(void) if (fork() != 0) { exit(0); } + set_main_thread(); /* We are now the main thread. */ + return; } } |