Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2001 17:55:18 -0700 (PDT)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/mountd mountd.c
Message-ID:  <200104210055.f3L0tI215335@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104210055.f3L0tI215335>