mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 21:11:33 +00:00
Solaris fix thanks to Alan Harder
This commit is contained in:
2
redis.c
2
redis.c
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user