summaryrefslogtreecommitdiff
path: root/include/iscsi_net_util.h
diff options
context:
space:
mode:
authorChris Leech <cleech@redhat.com>2016-04-08 10:55:46 -0700
committerChris Leech <cleech@redhat.com>2016-04-12 13:14:11 -0700
commiteee96526bd1caa8c58046b31705799d87ae10365 (patch)
tree7ade25391d232fff596f89285db8e36b057080e1 /include/iscsi_net_util.h
parent742e4e2fae1ffa3a86247e23e0d36a2f47481ff1 (diff)
downloadopen-iscsi-eee96526bd1caa8c58046b31705799d87ae10365.tar.gz
iscsiadm: fix parallel rescan handling of exit codes
The parallel rescan patches work, in so much as the rescans happen, but if a target is specified the non-matching cases cause warning to be printed and a non-zero exit code. To reproduce: have more than one session to different targets, issue a node mode rescan command to one of them (-m node -T <iqn.target> -R). The problem is that while exit() takes an int, only the low byte is part of the exit code and it's combined with other exit status information. iscsiadm tries to use exit(-1) to indicate a non-match (not a fatal error). The value retrieved with wait() after an exit(-1) is actually 65280. Fix this by making use of the wait.h macros for checking the exit code.
Diffstat (limited to 'include/iscsi_net_util.h')
0 files changed, 0 insertions, 0 deletions