I am looking for a simple and uncatchable way to terminate the Mac port of my C++ application. In Windows I was using
TerminateProcess(GetCurrentProcess, 0);
What's the equivalent command I can use with Mac OS X / XCode / GCC?
Actually you want _exit if you want to have the same semantics as TerminateProcess. exit semantics are more closely aligned with ExitProcess.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With