CVSROOT: /cvs Module name: src Changes by: ren...@cvs.openbsd.org 2016/09/03 10:22:17
Modified files: usr.sbin/bgpd : bgpd.c rde.c session.c Log message: Simplify shutdown process. On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@