www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Can I start a process 'std.process.spawnProcess' with a different

Doing my research, the only option I see is by using 'setpgid' 
from 'core.sys.posix.unistd'
and setting the foreground process using 'tcsetpgrp' from the 
same module, but I don't know how to go about doing that with the 
'std.process.spawnProcess', I'm writing a shell and the purpose 
of this is to only kill the child process in case of the SIGINT 
signal.

https://github.com/MKamelll/pat
Nov 17 2022