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:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user