commit fb5a3f0d25ec4896118f3d03582f93484af588b9 from: Omar Polo date: Sun Nov 21 20:37:14 2021 UTC reset ssh_pid if ssh dies commit - ca125bbacde9d4da363a16d25d070c460d402eee commit + fb5a3f0d25ec4896118f3d03582f93484af588b9 blob - 14e4333a4e3d9b479e15a8cb1f53b12d7686e77d blob + cea3f219833efb2f280c201e8b5f80ab1188c7f1 --- lstun.c +++ lstun.c @@ -85,6 +85,8 @@ chld(int fd, short event, void *data) if ((pid = waitpid(ssh_pid, &status, WNOHANG)) == -1) err(1, "waitpid"); + + ssh_pid = -1; } static void