diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-17 19:24:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-17 19:24:50 +0000 |
commit | caedfcbbb2c4f57635720f23f7cbf41cd4e8bc43 (patch) | |
tree | 8d03ee7a9af75e245048093ec4c4081db81dfd31 /libexec/tftpd/tftpd.c | |
parent | a71af0f33dcd3960f5b4dd5939c6226ef12add05 (diff) |
use _exit() in signal handlers, mark longjmp() as being a possible resource leak
Diffstat (limited to 'libexec/tftpd/tftpd.c')
-rw-r--r-- | libexec/tftpd/tftpd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 4e5916bff28..433025979f5 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftpd.c,v 1.14 2000/02/01 03:23:22 deraadt Exp $ */ +/* $OpenBSD: tftpd.c,v 1.15 2001/01/17 19:24:49 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)tftpd.c 5.13 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$OpenBSD: tftpd.c,v 1.14 2000/02/01 03:23:22 deraadt Exp $: tftpd.c,v 1.6 1997/02/16 23:49:21 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tftpd.c,v 1.15 2001/01/17 19:24:49 deraadt Exp $: tftpd.c,v 1.6 1997/02/16 23:49:21 deraadt Exp $"; #endif /* not lint */ /* @@ -408,8 +408,8 @@ timer() timeout += rexmtval; if (timeout >= maxtimeout) - exit(1); - longjmp(timeoutbuf, 1); + _exit(1); + longjmp(timeoutbuf, 1); /* XXX longjmp/signal resource leaks */ } /* @@ -477,7 +477,7 @@ abort: void justquit() { - exit(0); + _exit(0); } |