[scp.c]
no stdio or exit() in signal handlers.
- markus@cvs.openbsd.org 2001/06/16 08:50:39
[channels.h]
bad //-style comment; thx to stevev@darkwing.uoregon.edu
+ - markus@cvs.openbsd.org 2001/06/16 08:57:35
+ [scp.c]
+ no stdio or exit() in signal handlers.
20010615
- (stevesk) don't set SA_RESTART and set SIGCHLD to SIG_DFL
*/
#include "includes.h"
-RCSID("$OpenBSD: scp.c,v 1.73 2001/06/10 11:33:02 markus Exp $");
+RCSID("$OpenBSD: scp.c,v 1.74 2001/06/16 08:57:35 markus Exp $");
#include "xmalloc.h"
#include "atomicio.h"
int signo;
{
if (!iamremote)
- fprintf(stderr, "lost connection\n");
- exit(1);
+ write(STDERR_FILENO, "lost connection\n", 16);
+ if (signo)
+ _exit(1);
+ else
+ exit(1);
}