Sent the unexpectedRestart trap only if the child was terminated by a signal.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5566 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
6053283c1d
commit
74aae464d4
|
@ -1658,7 +1658,7 @@ bool EngineStartHandler::received(Message& msg)
|
|||
__plugin.sendTrap(notif,String(s_yateRun));
|
||||
}
|
||||
int lastsignal = Engine::runParams().getIntValue(YSTRING("lastsignal"),0);
|
||||
if (lastsignal >= 0) {
|
||||
if (lastsignal > 0) {
|
||||
String notif = lookup(EngineInfo::ENGINE_UNEX_RESTART,s_engineQuery,"");
|
||||
if (!notif.null())
|
||||
__plugin.sendTrap(notif,String(lastsignal));
|
||||
|
|
Loading…
Reference in New Issue