diff options
author | dg <dg@FreeBSD.org> | 1997-01-28 07:06:54 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-01-28 07:06:54 +0000 |
commit | 3d55397795e2c8928bb2665e40aa065be1ad3521 (patch) | |
tree | 46753a9e3dd328b07e4419cffae7785643a858a8 | |
parent | 41a5f912455b02d7ae4161e239e85ed3a987a56c (diff) | |
download | FreeBSD-src-3d55397795e2c8928bb2665e40aa065be1ad3521.zip FreeBSD-src-3d55397795e2c8928bb2665e40aa065be1ad3521.tar.gz |
Fix signal handler race condition.
-rw-r--r-- | libexec/ftpd/ftpd.c | 5 |
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); |