1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 18:56:39 +02:00

Fixed up anoperc to work with the newer startup method

This commit is contained in:
Adam
2011-10-15 02:08:52 -04:00
parent 89b4be681d
commit 2c614d5aab
2 changed files with 44 additions and 46 deletions
+4 -2
View File
@@ -267,9 +267,11 @@ class SignalSigChld : public Signal
void OnNotify()
{
int status = 0;
int status = 0, ret = -1;
wait(&status);
exit(status);
if (WIFEXITED(status))
ret = WEXITSTATUS(status);
exit(ret);
}
};
#endif