Windows requires re-setting the signal handler each time it is used
and thus ctrl-c was not behaving properly on Windows
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/driver/Driver.cpp | ||
---|---|---|
711 ↗ | (On Diff #207440) | It seems like you'd want to do it for every non-fatal signal, not just signint? |
tools/driver/Driver.cpp | ||
---|---|---|
711 ↗ | (On Diff #207440) | signal(SIGINT, sigint_handler); #if !defined(_MSC_VER) signal(SIGPIPE, SIG_IGN); signal(SIGWINCH, sigwinch_handler); signal(SIGTSTP, sigtstp_handler); signal(SIGCONT, sigcont_handler); #endif Windows doesn't have them, thus they re ifdefed out. |