Source

srw / srw.c

Diff from to

File srw.c

 		err(1, "failed execvp %s", argv[i]);
 	}
 
+	if (child < 0) {
+		warn("failed forkpty errno=%d", errno);
+		sleep(300);
+	}
+
 	if ((i = fcntl(mfd, F_GETFL)) < 0)
 	    err(1, "failed to get fcntl flags from mfd");
 	if (fcntl(mfd, F_SETFL, i | O_NONBLOCK) < 0)