Can I start a process 'std.process.spawnProcess' with a different process group id other than the parent id?

Mina minallkamel at gmail.com
Thu Nov 17 23:01:25 UTC 2022


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


More information about the Digitalmars-d-learn mailing list