comparison scp.c @ 1250:2bb4c662d1c2

more hard tab
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 15:02:09 +0100
parents 0a1891e23b18
children 52a456a3add0
comparison
equal deleted inserted replaced
1249:c6346c63281b 1250:2bb4c662d1c2
439 * Finally check the exit status of the ssh process, if one was forked 439 * Finally check the exit status of the ssh process, if one was forked
440 * and no error has occurred yet 440 * and no error has occurred yet
441 */ 441 */
442 if (do_cmd_pid != -1 && errs == 0) { 442 if (do_cmd_pid != -1 && errs == 0) {
443 if (remin != -1) 443 if (remin != -1)
444 (void) close(remin); 444 (void) close(remin);
445 if (remout != -1) 445 if (remout != -1)
446 (void) close(remout); 446 (void) close(remout);
447 if (waitpid(do_cmd_pid, &status, 0) == -1) 447 if (waitpid(do_cmd_pid, &status, 0) == -1)
448 errs = 1; 448 errs = 1;
449 else { 449 else {
450 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) 450 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
451 errs = 1; 451 errs = 1;