mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Merge remote-tracking branch 'origin/topic/timw/freebsd-warning'
* origin/topic/timw/freebsd-warning: Fix a compile warning on FreeBSD
This commit is contained in:
commit
f8389c92e0
3 changed files with 9 additions and 1 deletions
|
@ -766,7 +766,9 @@ void Stem::Destroy(SupervisorNode* node) const
|
|||
usleep(10);
|
||||
|
||||
if ( Wait(node, WNOHANG) )
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
DBG_STEM("Stem waiting to destroy node: %s (PID %d)",
|
||||
node->Name().data(), node->pid);
|
||||
|
@ -900,7 +902,9 @@ void Stem::Shutdown(int exit_code)
|
|||
auto nodes_alive = AliveNodeCount();
|
||||
|
||||
if ( nodes_alive == 0 )
|
||||
{
|
||||
exit(exit_code);
|
||||
}
|
||||
|
||||
DBG_STEM("Stem nodes still alive %d, sleeping for %d seconds",
|
||||
nodes_alive, kill_delay);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue