From owner-cvs-all Fri Apr 20 17:55:21 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 53FBF37B422; Fri, 20 Apr 2001 17:55:18 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3L0tI215335; Fri, 20 Apr 2001 17:55:18 -0700 (PDT) (envelope-from iedowse) Message-Id: <200104210055.f3L0tI215335@freefall.freebsd.org> From: Ian Dowse Date: Fri, 20 Apr 2001 17:55:18 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mountd mountd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/04/20 17:55:18 PDT Modified files: sbin/mountd mountd.c Log: Fix a long-standing bug relating to the handling of SIGHUP: mountd would call malloc, stdio and other library functions from the signal handler which is not safe due to reentrancy problems. Instead, add a simple handler that just sets a flag, and call the more complex function from main() when necessary. Unfortunately to be able to check this flag, we must expand the svc_run() call, but the RPC library makes that relatively easy to do. Revision Changes Path 1.47 +31 -5 src/sbin/mountd/mountd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message