Good day.
Can you recommend an analog fork for Windows? I am writing a simple server, I have never had to deal with the creation of processes in windows, I created processes in linux ... It was simple:
fork(); if(fork==0)
fork(); if(fork==0)
is a child process.
And in windows found
CreateProcess(commandline, NULL, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)
,
I read the documentation and did not understand how to exchange variables (information) with the process created. In general, he would not even have called it created, rather, it was launched ... Has anyone created servers of this kind?
CreateProcess
+ pipes. If you want live examples, see howgoogletest
written. - Costantino Rupert