process

Posted on

Hi,
I created a batch process sleep 1000 & in a ssh session,then i logged out from session.
Then:
ps -ef|grep sleep
y 1510 1 0 08:50 ? 00:00:00 sleep 10000
I see that sleep process is still there and the new parent is pid=1 even if the session is closed.Is this the normal behaviour in centos 7?
in this case there is no necessary to run nohup sleep 1000 to ensure that the process will be there even if the session will be closed?
If i run kill -9 still sleep 1000 is running and the parent is pid=1.
If i run kill -SIGHUP then every process started in that shell will be closed.
The only way to close the session with all the processes started in this session is kill -SIGHUP?

Responses