fork(1) download
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. void foo()
  5. {
  6. std::exit(EXIT_SUCCESS);
  7. }
  8.  
  9. int main()
  10. {
  11. foo();
  12. std::cout << "Will I ever get here?";
  13. }
  14.  
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty