• Kirill Smelkov's avatar
    os/signal: Internally emulate sigaction via signal · acc6c3f1
    Kirill Smelkov authored
    On MSVC there is no sigaction and we have to use signal. Fortunately
    our sigaction usage in os/signal can be practically emulated because we
    do not use all features of sigaction and because on MSVC there is
    SIG_GET signal extension to query current signal handler without
    resetting it.
    
    Because the emulation is limited we keep it in os/signal.cpp instead of
    adjusting syscall::Sigaction .
    acc6c3f1
syscall.cpp 4.63 KB