]> andersk Git - openssh.git/blobdiff - sftp.c
- markus@cvs.openbsd.org 2002/03/30 18:51:15
[openssh.git] / sftp.c
diff --git a/sftp.c b/sftp.c
index f576ed3d50f061b06c39d2d78cf1b07d7677075f..e4086549cf75728993c8652aba9b4602c04049e6 100644 (file)
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
 
 #include "includes.h"
 
-RCSID("$OpenBSD: sftp.c,v 1.27 2002/03/19 10:49:35 markus Exp $");
+RCSID("$OpenBSD: sftp.c,v 1.28 2002/03/30 18:51:15 markus Exp $");
 
 /* XXX: short-form remote directory listings (like 'ls -C') */
 
@@ -246,8 +246,10 @@ main(int argc, char **argv)
        if (infile != stdin)
                fclose(infile);
 
-       if (waitpid(sshpid, NULL, 0) == -1)
-               fatal("Couldn't wait for ssh process: %s", strerror(errno));
+       while (waitpid(sshpid, NULL, 0) == -1)
+               if (errno != EINTR)
+                       fatal("Couldn't wait for ssh process: %s",
+                           strerror(errno));
 
        exit(0);
 }
This page took 0.036051 seconds and 4 git commands to generate.