From owner-cvs-usrsbin Sat Jan 11 09:16:21 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA24456 for cvs-usrsbin-outgoing; Sat, 11 Jan 1997 09:16:21 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA24449; Sat, 11 Jan 1997 09:16:20 -0800 (PST) Date: Sat, 11 Jan 1997 09:16:20 -0800 (PST) From: Bill Paul Message-Id: <199701111716.JAA24449@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ypbind ypbind.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 97/01/11 09:16:20 Modified: usr.sbin/ypbind ypbind.c Log: Correct two bugs: - If a child receives a SIGTERM, it will call the terminate() function and end up doing the shutdown procedurs that should really only be done by the parent. Set the SIGTERM behavior back to SIG_DLT in the child after fork()ing. - If the parent fails to read data back from the child because the child has exited, it will call rpc_received() with bogus tdata that can cause the parent to SEGV. Make handle_children() detect this condition correctly and handle it sanely. *sigh* Another 2.2 candidate. Revision Changes Path 1.20 +50 -13 src/usr.sbin/ypbind/ypbind.c