I'm using SSH for TCP forwarding in a script, and needed the exact functionality (--print-pid when using -f) to tear down the daemon when the script ends. This bug is the first link for "ssh print pid" on Google where I also found bug #1473 [1] in the OpenSSH BTS (reported May 2008) which also requests this feature. That bug report contains the recommended way to implement connection sharing with graceful exits. While not exactly --print-pid, I think that workaround will also work for me.
[1] <https://bugzilla.mindrot.org/show_bug.cgi?id=1473> -- Sreepathi Pai -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

