]> granicus.if.org Git - sudo/commit
When trying to determine the tty, fall back on /proc/ppid/fd/{0,1,2}
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 Jan 2012 18:03:37 +0000 (13:03 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 Jan 2012 18:03:37 +0000 (13:03 -0500)
commit6625554c15596fb9764d617783591f353c006ef9
tree6fb72fa8ee1414b97f5d5e12a7fda03c99164859
parent7f4d1a34580afc435850d77c49b0d3eba20db3a7
parent4da65677bd7caadcdf4f9130fc6ae35392e6904a
When trying to determine the tty, fall back on /proc/ppid/fd/{0,1,2}
if the main process's fds 0-2 are not hooked up to a tty.  Adapted
from a diff by Zdenek Behan.

--HG--
branch : 1.8