You're absolutely right. When I was doing this programmatically, I was using a C++ API called waitpid() to obtain the exit status from the spawned app. Unfortunately, I wasnt setting the call up properly and I was getting a garbage value returned. [Embarassed]