Sigaction and porting Linux code to Windows

前端 未结 2 2187
感情败类
感情败类 2021-02-14 22:11

I am trying to port caffe (developed for Linux) source code to Windows environment. The problem is at sigaction structure at signal_handler.cpp and

2条回答
  •  -上瘾入骨i
    2021-02-14 23:12

    sigaction is part of the UNIX signals API. Windows provides only signal, which doesn't support SIGHUP or any flags (such as SA_RESTART). However, the very basic support is still there, so the code should still work reasonably correctly if you use just signal (and not sigaction).

提交回复
热议问题