For coverage testing use exit() instead of _exit() when termiating saving children.

This commit is contained in:
antirez
2012-04-07 12:11:23 +02:00
parent 4ce22375f4
commit 2cbdab903f
5 changed files with 17 additions and 4 deletions

View File

@ -686,7 +686,7 @@ int rdbSaveBackground(char *filename) {
if (server.ipfd > 0) close(server.ipfd);
if (server.sofd > 0) close(server.sofd);
retval = rdbSave(filename);
_exit((retval == REDIS_OK) ? 0 : 1);
exitFromChild((retval == REDIS_OK) ? 0 : 1);
} else {
/* Parent */
server.stat_fork_time = ustime()-start;