mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
Return exit code from spawned process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user