Let’s say I started Linux process, in the background. It is not a daemon, just a utility.
If it gets SIGHUP, it would be killed.
I did not take the “nohup” precaution. It is taking already much longer time than I thought.
After 4 hours of running, ssh session might get disconnected. But I don’t want to lose the process.
I want to prevent it being killed by SIGHUP.
Is it possible to make the equivalent of
signal(SIGHUP, SIG_IGN);
to this process without restarting it ?
Thanks
Use
disown(1)Detaching a process from terminal, entirely