diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-21 03:08:58 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-21 03:08:58 +0000 |
commit | 738f51e3df2f471b36abf8932ce59984daa3aa64 (patch) | |
tree | 5363cc2bd7d97942d6c90dff0647a7af3ae8515e | |
parent | 83417a86da30b1db7acfd0650e33bcfd8f31b968 (diff) |
- markus@cvs.openbsd.org 2001/06/16 08:57:35
[scp.c]
no stdio or exit() in signal handlers.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | scp.c | 9 |
2 files changed, 10 insertions, 4 deletions
@@ -6,6 +6,9 @@ | |||
6 | - markus@cvs.openbsd.org 2001/06/16 08:50:39 | 6 | - markus@cvs.openbsd.org 2001/06/16 08:50:39 |
7 | [channels.h] | 7 | [channels.h] |
8 | bad //-style comment; thx to stevev@darkwing.uoregon.edu | 8 | bad //-style comment; thx to stevev@darkwing.uoregon.edu |
9 | - markus@cvs.openbsd.org 2001/06/16 08:57:35 | ||
10 | [scp.c] | ||
11 | no stdio or exit() in signal handlers. | ||
9 | 12 | ||
10 | 20010615 | 13 | 20010615 |
11 | - (stevesk) don't set SA_RESTART and set SIGCHLD to SIG_DFL | 14 | - (stevesk) don't set SA_RESTART and set SIGCHLD to SIG_DFL |
@@ -5658,4 +5661,4 @@ | |||
5658 | - Wrote replacements for strlcpy and mkdtemp | 5661 | - Wrote replacements for strlcpy and mkdtemp |
5659 | - Released 1.0pre1 | 5662 | - Released 1.0pre1 |
5660 | 5663 | ||
5661 | $Id: ChangeLog,v 1.1290 2001/06/21 03:07:27 mouring Exp $ | 5664 | $Id: ChangeLog,v 1.1291 2001/06/21 03:08:58 mouring Exp $ |
@@ -75,7 +75,7 @@ | |||
75 | */ | 75 | */ |
76 | 76 | ||
77 | #include "includes.h" | 77 | #include "includes.h" |
78 | RCSID("$OpenBSD: scp.c,v 1.73 2001/06/10 11:33:02 markus Exp $"); | 78 | RCSID("$OpenBSD: scp.c,v 1.74 2001/06/16 08:57:35 markus Exp $"); |
79 | 79 | ||
80 | #include "xmalloc.h" | 80 | #include "xmalloc.h" |
81 | #include "atomicio.h" | 81 | #include "atomicio.h" |
@@ -1052,8 +1052,11 @@ lostconn(signo) | |||
1052 | int signo; | 1052 | int signo; |
1053 | { | 1053 | { |
1054 | if (!iamremote) | 1054 | if (!iamremote) |
1055 | fprintf(stderr, "lost connection\n"); | 1055 | write(STDERR_FILENO, "lost connection\n", 16); |
1056 | exit(1); | 1056 | if (signo) |
1057 | _exit(1); | ||
1058 | else | ||
1059 | exit(1); | ||
1057 | } | 1060 | } |
1058 | 1061 | ||
1059 | 1062 | ||