File tree Expand file tree Collapse file tree 3 files changed +3
-28
lines changed Expand file tree Collapse file tree 3 files changed +3
-28
lines changed Original file line number Diff line number Diff line change @@ -294,22 +294,6 @@ void SEHCleanupSignals()
294
294
}
295
295
}
296
296
297
- /* ++
298
- Function :
299
- SEHCleanupAbort()
300
-
301
- Restore default SIGABORT signal handlers
302
-
303
- (no parameters, no return value)
304
- --*/
305
- void SEHCleanupAbort ()
306
- {
307
- if (g_registered_signal_handlers)
308
- {
309
- restore_signal (SIGABRT, &g_previous_sigabrt);
310
- }
311
- }
312
-
313
297
/* internal function definitions **********************************************/
314
298
315
299
/* ++
Original file line number Diff line number Diff line change @@ -117,14 +117,4 @@ Function :
117
117
--*/
118
118
void SEHCleanupSignals ();
119
119
120
- /* ++
121
- Function :
122
- SEHCleanupAbort()
123
-
124
- Restore default SIGABORT signal handlers
125
-
126
- (no parameters, no return value)
127
- --*/
128
- void SEHCleanupAbort ();
129
-
130
120
#endif /* _PAL_SIGNAL_HPP_ */
Original file line number Diff line number Diff line change @@ -2677,8 +2677,9 @@ PROCAbort(int signal)
2677
2677
2678
2678
PROCCreateCrashDumpIfEnabled (signal);
2679
2679
2680
- // Restore the SIGABORT handler to prevent recursion
2681
- SEHCleanupAbort ();
2680
+ // Restore all signals; the SIGABORT handler to prevent recursion and
2681
+ // the others to prevent multiple core dumps from being generated.
2682
+ SEHCleanupSignals ();
2682
2683
2683
2684
// Abort the process after waiting for the core dump to complete
2684
2685
abort ();
You can’t perform that action at this time.
0 commit comments