r/cpp • u/SatadeepDasgupta • Jul 03 '26
Windows doesn't have fork(), so I faked copy-on-write with VirtualProtect + exception handling to snapshot an in-memory KV store
0
Upvotes
r/cpp • u/SatadeepDasgupta • Jul 03 '26
View all comments
Show parent comment
1
u/Fabulous-Meaning-966 Jul 07 '26
fork(2) still makes sense as a way to configure a new process before calling exec, without adding a gazillion flags to posix_spawn or equivalent.