From 0b4df2eec20a279f9a71c3d4a2dd64164b8a255d Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 28 Jan 1997 07:06:54 +0000 Subject: [PATCH] Fix signal handler race condition. --- libexec/ftpd/ftpd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 71565cf1c4d..8708ebf4ec5 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -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);