How will _Exit behave in a C++ program?
问题 C99 offers the _Exit function, which exits "immediately", although it does may close file descriptors. Unix/POSIX extends this behavior by mandating the closing of all fd's without flushing (and offers the synonym _exit). Will these functions call destructors for static objects when called from a C++ program? Does the C++ standard make any guarantees about _Exit ? (Inspired by this question; I suddenly wondered what happens in the typical fork - exec - _exit idiom in C++.) 回答1: It simply