fork/chroot equivalent for Windows server application

前端 未结 6 597
日久生厌
日久生厌 2020-12-19 10:08

I have written a small custom web server application in C running on Linux. When the application receives a request it calls fork() and handles the request in a separate pro

6条回答
  •  生来不讨喜
    2020-12-19 10:46

    The absolutely simplest way of doing it is using Cygwin, the free Unix emulation layer for Windows. Download it and install a complete development environment. (Choose in the installer.) If you are lucky, you will be able to compile your program as is, no changes at all.

    Of course there are downsides and some might consider this "cheating" but you asked for the simplest solution.

提交回复
热议问题