aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2020-01-10 20:46:26 +0900
committerCorinna Vinschen <corinna@vinschen.de>2020-01-14 17:19:19 +0100
commit2f415d5efae5a47906f0fdf5080c407b56b5ce20 (patch)
tree447b175f390fc24d7c635950da8b078095a704cd /winsup/cygwin/fhandler.h
parent783eaa888feaf4f76df3d3449e29aa20aa78c802 (diff)
downloadnewlib-2f415d5efae5a47906f0fdf5080c407b56b5ce20.zip
newlib-2f415d5efae5a47906f0fdf5080c407b56b5ce20.tar.gz
newlib-2f415d5efae5a47906f0fdf5080c407b56b5ce20.tar.bz2
Cygwin: pty: Disable FreeConsole() on close for non cygwin process.
- After commit e1a0775dc0545b5f9c81b09a327fc110c538b7b4, the problem reported in https://www.cygwin.com/ml/cygwin/2020-01/msg00093.html occurs. For Gnu scren and tmux, calling FreeConsole() on pty close is necessary. However, if FreeConsole() is called, cygwin setup with '-h' option does not work. Therefore, the commit e1a0775dc0545b5f9c81b09a327fc110c538b7b4 delayed closing pty. This is the cause of the problem above. Now, instead of delaying pty close, FreeConsole() is not called if the process is non cygwin processes such as cygwin setup.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 4a71c16..c0d56b4 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -2200,6 +2200,7 @@ class fhandler_pty_slave: public fhandler_pty_common
return get_ttyp ()->ti.c_lflag & ICANON;
}
void setup_locale (void);
+ void set_freeconsole_on_close (bool val);
};
#define __ptsname(buf, unit) __small_sprintf ((buf), "/dev/pty%d", (unit))