Overview
| Artifact ID: | 43d3154163e6d730bb3c9762acb2b6e076b7bcbf |
|---|---|
| Ticket: | 027ba061a8aac869441267c2aef4c4bf9c705c10
Standard channels do not exist on new threads on Windows |
| User & Date: | jan.nijtmans on 2014-09-30 13:39:06 |
Changes
- icomment:
Actually, wish doesn't have stdin/stdout/stderr on windows at all, neither in the main thread neither in additional threads. But when wish is ran interactively on windows, a separate console is created which has "artificial" stdin/stdout/stderr. The code for this is - indeed - in tkConsole.c. So, the observed difference is only noticed when wish is ran interactively, in real applications there will be no stdin/stdout/stderr at all, not in any thread. Yes, that's a difference between Linux and Windows, but it is due to the fact that Windows GUI application don't have stdin/stdout/stderr by (Microsoft's) design. I'm not sure something should be done about this. At most some additional wrapper-code which creates the 3 channels, and maps them through to the 3 (artifical) channels in the main thread. And that should only be done when wish is in interactive mode.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"