diff options
author | das <das> | 2007-11-09 06:26:53 (GMT) |
---|---|---|
committer | das <das> | 2007-11-09 06:26:53 (GMT) |
commit | b9652b702cae5e5788fbfe53df5ffda1088c1c4e (patch) | |
tree | 40938979466c8caac1c03c907753bc43175304bd /macosx/tkMacOSXInit.c | |
parent | 2c6378ed8a50f11f4d5f22d2aa6365c5784adcc3 (diff) | |
download | tk-b9652b702cae5e5788fbfe53df5ffda1088c1c4e.zip tk-b9652b702cae5e5788fbfe53df5ffda1088c1c4e.tar.gz tk-b9652b702cae5e5788fbfe53df5ffda1088c1c4e.tar.bz2 |
Backport from HEAD of Aqua changes from 2007-10-12 to 2007-11-09
Diffstat (limited to 'macosx/tkMacOSXInit.c')
-rw-r--r-- | macosx/tkMacOSXInit.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c index d87c8a4..23e003d 100644 --- a/macosx/tkMacOSXInit.c +++ b/macosx/tkMacOSXInit.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXInit.c,v 1.3.2.24 2007/06/29 03:22:02 das Exp $ + * RCS: @(#) $Id: tkMacOSXInit.c,v 1.3.2.25 2007/11/09 06:26:55 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -332,6 +332,18 @@ TkpInit( TkMacOSXCarbonEncoding = Tcl_GetEncoding(NULL, NULL); } +#if 0 + /* + * FIXME: Close stdin & stdout for remote debugging otherwise we + * will fight with gdb for stdin & stdout + */ + + if (getenv("XCNOSTDIN") != NULL) { + close(0); + close(1); + } +#endif + /* * If we don't have a TTY and stdin is a special character file of * length 0, (e.g. /dev/null, which is what Finder sets when double |