handle errorCode=NONE (close pipe was with error but no error code)

This commit is contained in:
stefan schippers 2023-11-08 04:02:33 +01:00
parent b51af6422e
commit ed9d6905de
1 changed files with 3 additions and 1 deletions

View File

@ -264,7 +264,9 @@ proc execute_fileevent {id} {
# puts "catch_return=$catch_return"
if {$catch_return} {
# puts "errorCode=$errorCode"
if {"CHILDSTATUS" == [lindex $errorCode 0]} {
if {"NONE" == [lindex $errorCode 0]} {
set exit_status 0
} elseif {"CHILDSTATUS" == [lindex $errorCode 0]} {
set exit_status [lindex $errorCode 2]
# puts "exit_status=$exit_status"
} else {