Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <chrono>
- #include <thread>
- #include <signal.h>
- int main(int argc, char const *argv[])
- {
- std::cout << "Before exception out.." << std::endl;
- std::cerr << "Before exception.." << std::endl;
- // throw std::exception();
- raise(SIGSEGV);
- std::this_thread::sleep_for(std::chrono::seconds(5));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement