2 ms·
Depending on the nature of your segfault handler, you could either make sure you have any data structures you need already allocated, or allocate out of a separ
by JoshTriplett 10y ago
Depending on the nature of your segfault handler, you could either make sure you have any data structures you need already allocated, or allocate out of a separate arena. Or, alternatively, handle the signal in another process entirely.
- gpderetta 10y agoI.e. it is safe as long as you follow the same rules you would use in a normal signal handler :). Out of process handling is a robust solution though.