From 42165f24a1be4a3bb5065fc6abb51649483c349f Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 28 Jan 1997 07:15:44 +0000 Subject: Brought in fixes from 1.30/1.31: fix for signal handler race condition --- libexec/ftpd/ftpd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libexec/ftpd') diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 2f02ff1f9b73..438d01362a33 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ftpd.c,v 1.25.2.1 1996/11/21 16:35:50 phk Exp $ + * $Id: ftpd.c,v 1.25.2.2 1996/12/03 10:34:42 phk Exp $ */ #if 0 @@ -1644,6 +1644,11 @@ void dologout(status) int status; { + /* + * Prevent reception of SIGURG from resulting in a resumption + * back to the main program loop. + */ + transflag = 0; if (logged_in) { (void) seteuid((uid_t)0); -- cgit v1.3