Skip to content

Commit b0dd8d0

Browse files
committed
when exiting from fork it's safer to use _exit
1 parent 33fcd7c commit b0dd8d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ static pid_t db_index_flush(bool copyOnWrite){
14531453
snprintf(buffer2, 1024, "%s/db.temp", db.path_root);
14541454
unlink(buffer2);
14551455
}
1456-
exit(0);
1456+
_exit(0);
14571457
}
14581458

14591459
return pid;

0 commit comments

Comments
 (0)