Overview
| Artifact ID: | d38dc3a95a6278bedc9de208510ca3b6844aa6da |
|---|---|
| Ticket: | 813087ffffffffffffffffffffffffffffffffff
tclsh treats Unix pipelines as sockets |
| User & Date: | cc_benny on 2003-09-27 22:50:17 |
Changes
- icomment:
Logged In: YES user_id=143885 More points: - Darwin/Mac OS X implements pipes as sockets internally. This is also on NetBSD. - The call to getsockopt() was added to tclUnixChan.c:Tcl_MakeFileChannel() in version 1.20 of the file by dkf (Donal K. Fellows) in response to bug #219137. See posting on a NetBSD list <http://groups.google.com/groups?selm=20010327154747.A13991%40vaasje.org> for alternative code to detect socket vs. other file types, based on getsockname(). That code works here on Mac OS X and could be used in Tcl_MakeFileChannel() instead of (or in addition to) getsockopt(SO_TYPE).
- login: "cc_benny"
- mimetype: "text/plain"
- username: "cc_benny"