-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hello, I'm confused about one part of the project. After using sigaction(sig, &action_info, &old_sa[sig]) in the function signal_handler_init(), I found that the values of old_sa[sig].sa_handler or old_sa[sig].sa_sigaction is always 0, which will leads to a problem: when initialized with signal_catch_init(), if a signal generated outside the try-catch range is caught, it should reasonably be handled according to the default logic, but the default handler function obtained through the sigaction function is NULL, so the signal_handler function cannot correctly handle This can lead to a dead loop where the exception is constantly triggered and signal_handler keeps catching.
Metadata
Metadata
Assignees
Labels
No labels