Reputation: 3
I have a C++ application that I am trying to run using the Windows command prompt by moving into the application directory and then call appl.exe
with some arguments. The application gets launched(not yet closed), but the control returns to the command prompt.
Now when I do the same on Cygwin terminal, it waits for the application to exit before relinquishing the control.
I have tried to search for an answer but was not able to do so.
Can you please help me to understand the difference in behavior?
Thanks in advance.
Upvotes: 0
Views: 1099
Reputation: 2698
Terminals in Windows like CMD and PowerShell launch applications in non-blocking mode (usually called the headless mode, if I'm not wrong. And it holds good for all executable files). There's nothing to bother until your application is running fine.
Cygwin, on the contrary, provides a Linux-like functionality, and thus follows the blocking nature of launching the application. That results in the Cygwin terminal to wait for the running application to quit to continue working.
Upvotes: 1