Overview
| Artifact ID: | 2b2d5a90f463dd985a7869eecfdbc2f241a3fe81 |
|---|---|
| Ticket: | 2000586fffffffffffffffffffffffffffffffff
Dangerous reuse of channel names in unix |
| User & Date: | dkf on 2008-06-23 17:33:34 |
Changes
- icomment:
Logged In: YES user_id=79902 Originator: NO I think this is an unnecessary change, and I note that it's not possible to say for sure that people aren't using the fact that the FD is in the channel name. It's not possible to extrapolate from just your own experience with the hacks that people do; that's why more than one person is a maintainer. The point about prime duties of a language is obfuscatory and totally off topic. Tcl uses the FD in the channel handle name (except for stdin/stdout/stderr); it has done for many years — more than I've been using Tcl at least — so I'm really loth to change it as who knows what you'd break? (I know I've written code in the past to determine what file a particular channel is opened upon, which can be useful in complex programs; doing this by grabbing the number off the end of the channel name and looking /proc/[pid]/fd is the easiest way since it doesn't require you to retain any metadata yourself. Having to strace the program would have sucked, since it ran for at full tilt for hours...) Why not go and write some photo image rotation or scaling code or something? That'd be welcomed by many...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"