mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Return exit code from spawned process
This commit is contained in:
parent
aa6470b730
commit
c02d993e73
@ -15,3 +15,12 @@ expect {
|
||||
}
|
||||
eof { }
|
||||
}
|
||||
|
||||
lassign [wait] pid spawnid os_error_flag retval
|
||||
|
||||
if {$os_error_flag == 0} {
|
||||
puts "exit status: $retval"
|
||||
} else {
|
||||
puts "errno: $retval"
|
||||
}
|
||||
exit $retval
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user