version 1.55, 2004/06/25 23:21:38 |
version 1.56, 2004/07/11 17:48:47 |
|
|
|
|
/* |
/* |
* The underlying ssh is in the same process group, so we must |
* The underlying ssh is in the same process group, so we must |
* ignore SIGINT if we want to gracefully abort commands, |
* ignore SIGINT if we want to gracefully abort commands, |
* otherwise the signal will make it to the ssh process and |
* otherwise the signal will make it to the ssh process and |
* kill it too |
* kill it too |
*/ |
*/ |
signal(SIGINT, SIG_IGN); |
signal(SIGINT, SIG_IGN); |
|
|
fatal("Batch file already specified."); |
fatal("Batch file already specified."); |
|
|
/* Allow "-" as stdin */ |
/* Allow "-" as stdin */ |
if (strcmp(optarg, "-") != 0 && |
if (strcmp(optarg, "-") != 0 && |
(infile = fopen(optarg, "r")) == NULL) |
(infile = fopen(optarg, "r")) == NULL) |
fatal("%s (%s).", strerror(errno), optarg); |
fatal("%s (%s).", strerror(errno), optarg); |
showprogress = 0; |
showprogress = 0; |