ssh
by linuly from LinuxQuestions.org on (#5G9BE)
hi,
i connect with ssh to a host and after that systemctl stop sshd on host.
i can see that i can work in this session but the new parent is systemd.
before:
Code:root 4788 4111 0 07:28 ? 00:00:00 sshd: root@pts/0
root 4792 4788 0 07:28 pts/0 00:00:00 -bash
where 4111 ->sshd
after stop
root 4788 1 0 07:28 ? 00:00:00 sshd: root@pts/0
root 4792 4788 0 07:28 pts/0 00:00:00 -bashis this behaviour normal?
as i can see in systemd if the parent of a process is killed then the new parent is systemd.


i connect with ssh to a host and after that systemctl stop sshd on host.
i can see that i can work in this session but the new parent is systemd.
before:
Code:root 4788 4111 0 07:28 ? 00:00:00 sshd: root@pts/0
root 4792 4788 0 07:28 pts/0 00:00:00 -bash
where 4111 ->sshd
after stop
root 4788 1 0 07:28 ? 00:00:00 sshd: root@pts/0
root 4792 4788 0 07:28 pts/0 00:00:00 -bashis this behaviour normal?
as i can see in systemd if the parent of a process is killed then the new parent is systemd.