mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
Return exit code from spawned process
This commit is contained in:
@@ -15,3 +15,12 @@ expect {
|
|||||||
}
|
}
|
||||||
eof { }
|
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