Solaris fix thanks to Alan Harder

This commit is contained in:
antirez
2009-11-12 21:49:15 +01:00
parent 51e01d9b39
commit ef3ac64a27
2 changed files with 14 additions and 1 deletions

View File

@ -906,7 +906,7 @@ static int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientD
/* Check if a background saving in progress terminated */
if (server.bgsaveinprogress) {
int statloc;
if (wait4(-1,&statloc,WNOHANG,NULL)) {
if (wait3(&statloc,WNOHANG,NULL)) {
int exitcode = WEXITSTATUS(statloc);
int bysignal = WIFSIGNALED(statloc);