KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Here is the code on which I set my handler for SIGABRT signal then I call abort() but handler does not get trigered, instead program gets aborted, why? #include <iostream> #include <csignal> using namespace std; void Triger(int x) { cout << "Function triger" << endl; } int main() { signal(SIGABRT, Triger); abort(); cin.ignore(); return 0; } PROGRAM OUTPUT:
Tags (comma-separated)
Save Edits
Cancel