summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-01-28 07:06:54 +0000
committerdg <dg@FreeBSD.org>1997-01-28 07:06:54 +0000
commit3d55397795e2c8928bb2665e40aa065be1ad3521 (patch)
tree46753a9e3dd328b07e4419cffae7785643a858a8 /libexec
parent41a5f912455b02d7ae4161e239e85ed3a987a56c (diff)
downloadFreeBSD-src-3d55397795e2c8928bb2665e40aa065be1ad3521.zip
FreeBSD-src-3d55397795e2c8928bb2665e40aa065be1ad3521.tar.gz
Fix signal handler race condition.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 71565cf..8708ebf 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);
OpenPOWER on IntegriCloud