Displaying 1 result from an estimated 1 matches for "f3baea2".
Did you mean:
f33ae2a
2012 Aug 29
0
PATCH: Log the PID of executed commands
sshd logs the PID of the network child and the user child sshd
processes. This patch adds logging the PID of invoked commands for
completeness.
diff --git a/session.c b/session.c
index f3baea2..dd1d0e8 100644
--- a/session.c
+++ b/session.c
@@ -579,6 +579,7 @@ do_exec_no_pty(Session *s, const char *command)
do_child(s, command);
/* NOTREACHED */
default:
+ verbose("command is on pid %ld", (long)pid);
break;
}
@@ -729,6 +730,7 @@ do_exec_pty(Session *s, const cha...