I made program in Go that kills a process with syscall.Kill()
But if I daeminze that process with fork()
+ setsid()
then syscall.Kill()
does not kill that process.
If I use shell kill
then I'm able to kill that process in both cases.
I tried different signals: SIGINT
, SIGTERM
and SIGKILL
buthey do not kill the daemon.