Leaked fd into spawned children
Jan Kratochvil <[email protected]> Wed, 28 Aug 2013 20:30:12 +0200
| Newsgroups | gmane.comp.sysutils.dejagnu.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi, Steps to Reproduce: echo 'remote_exec target "ls -l /proc/self/fd/"' >dejagnuleak.exp runtest dejagnuleak.exp cat testrun.log Actual results: lrwx------ 1 jkratoch jkratoch 64 Aug 26 21:15 0 -> /dev/pts/5 lrwx------ 1 jkratoch jkratoch 64 Aug 26 21:15 1 -> /dev/pts/5 lrwx------ 1 jkratoch jkratoch 64 Aug 26 21:15 2 -> /dev/pts/5 lrwx------ 1 jkratoch jkratoch 64 Aug 26 21:15 3 -> /dev/pts/2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lr-x------ 1 jkratoch jkratoch 64 Aug 26 21:15 4 -> /proc/25522/fd Expected results: lrwx------ 1 jkratoch jkratoch 64 Aug 26 21:15 0 -> /dev/pts/5 lrwx------ 1 jkratoch jkratoch 64 Aug 26 21:15 1 -> /dev/pts/5 lrwx------ 1 jkratoch jkratoch 64 Aug 26 21:15 2 -> /dev/pts/5 lr-x------ 1 jkratoch jkratoch 64 Aug 26 21:15 3 -> /proc/25522/fd The fd for /proc/25522/fd is apparently correct - the one of ls argument. Version-Release number of selected component (if applicable): commit 5481f29161477520c691d525653323b82fa47ad7 (2013-06-17) expect-5.45-10.fc20.x86_64 tcl-8.5.14-1.fc20.x86_64 Thanks, Jan