TCL and EXEC modules are completely different, they share almost nothing in common and you can't compare them.
Please make sure that in your test you don't have the leftover !detach line being output. That specifically tells the server to stop waiting for the program to exit and return immediately which obviously means it can't get access to the program's exit code...
|