and i get reported pid 1 = 9776 pid 2 = 9777 but on a compute-0-0 id of the proc is 24356 and on compute-0-1 4443
The value returned by fork is not the PIDs of the remote processes but the PID of the new local process (the one that will become ssh after the exec call).
On the remote machine, when the SSH connection is stablished, sshd forks a new process that then forks a new shell that finally forks and executes the requested command.
In reply to Re^2: how to kill deattached process
by salva
in thread how to kill deattached process
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |