Skip to content

Commit

Permalink
rde and eigrpe should use exit(3) instead of _exit(2)
Browse files Browse the repository at this point in the history
Since recently these processes call exec() after fork(), so they should
stop using _exit(2) and use exit(3) instead when shutting down.

ok claudio@
  • Loading branch information
rwestphal committed Aug 8, 2016
1 parent b3e894b commit 5a07b43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion eigrpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ eigrpe_shutdown(void)
free(pkt_ptr);

log_info("eigrp engine exiting");
_exit(0);
exit(0);
}

/* imesg */
Expand Down
5 changes: 1 addition & 4 deletions log.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ fatal(const char *emsg)
logit(LOG_CRIT, "fatal in %s: %s",
procnames[eigrpd_process], emsg);

if (eigrpd_process == PROC_MAIN)
exit(1);
else /* parent copes via SIGCHLD */
_exit(1);
exit(1);
}

void
Expand Down
2 changes: 1 addition & 1 deletion rde.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ rde_shutdown(void)
free(iev_main);

log_info("route decision engine exiting");
_exit(0);
exit(0);
}

int
Expand Down

0 comments on commit 5a07b43

Please sign in to comment.