comparison scp.c @ 1251:52a456a3add0

Merge branch '20151231_indent' of https://github.com/fperrad/dropbear into fperrad-20151231_indent
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Mar 2016 21:41:06 +0800
parents f7f2c3714269 2bb4c662d1c2
children 81ae6ed4e2f4
comparison
equal deleted inserted replaced
1248:739b3909c499 1251:52a456a3add0
438 * Finally check the exit status of the ssh process, if one was forked 438 * Finally check the exit status of the ssh process, if one was forked
439 * and no error has occurred yet 439 * and no error has occurred yet
440 */ 440 */
441 if (do_cmd_pid != -1 && errs == 0) { 441 if (do_cmd_pid != -1 && errs == 0) {
442 if (remin != -1) 442 if (remin != -1)
443 (void) close(remin); 443 (void) close(remin);
444 if (remout != -1) 444 if (remout != -1)
445 (void) close(remout); 445 (void) close(remout);
446 if (waitpid(do_cmd_pid, &status, 0) == -1) 446 if (waitpid(do_cmd_pid, &status, 0) == -1)
447 errs = 1; 447 errs = 1;
448 else { 448 else {
449 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) 449 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
450 errs = 1; 450 errs = 1;