tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
/bin/sh redirection in 'while' loop not closed afterwards?
I see the same thing on my amd64 -current.
BTW, where did fd #10 come from? :)
# ls /proc/self/fd
0 1 2 3 4
# while false ; do : ; done 9< /dev/null
# ls /proc/self/fd
0 1 10 2 3 4 9
^^ ^
#
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index