also sprach Ludovico Gardenghi <gar...@debian.org> [2012.02.19.1754 +0100]: > It seems reasonable to me to try to climb up the process tree until we > meet a process with "sshd" in the command line (or, maybe better (?), > with "sshd" in the proc/<pid>/exe symlink). Still not the cleanest of the > solutions, but should be quite portable.
Last I checked, /proc is *not* portable. -- .''`. martin f. krafft <madduck@d.o> Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)