diff options
author | Karel Zak | 2007-01-03 00:28:02 +0100 |
---|---|---|
committer | Karel Zak | 2007-01-04 14:40:00 +0100 |
commit | 8271f58d5122e2c8a9a68653767d6ca50692040c (patch) | |
tree | 232d2e7749054ce00cd0563cdc118eb9c72b7cc7 /tests/functions.sh | |
parent | execl() should be use NULL not 0 (diff) | |
download | kernel-qcow2-util-linux-8271f58d5122e2c8a9a68653767d6ca50692040c.tar.gz kernel-qcow2-util-linux-8271f58d5122e2c8a9a68653767d6ca50692040c.tar.xz kernel-qcow2-util-linux-8271f58d5122e2c8a9a68653767d6ca50692040c.zip |
more: fix file descriptor leak
When you view a file with the more command and run a shell, the file descriptor
for reading the file is leaked to that process.
To test, more any file. Then do !/bin/sh. At the prompt do "ls -l /proc/$$/fd"
and you'll see the leaked fd.
From: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
0 files changed, 0 insertions, 0 deletions