diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-01-21 17:14:39 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-01-21 17:14:39 +0000 |
commit | 7ffaa17c80379b1a5b5f66865ee72e1c89584386 (patch) | |
tree | 43f525530c89be0d02f751021356a7c71042d865 /winsup/cygwin/fhandler_tty.cc | |
parent | d9ad7a9c4edb8d5b8cadd7d1f0599c5f45635940 (diff) | |
download | cygnal-7ffaa17c80379b1a5b5f66865ee72e1c89584386.tar.gz cygnal-7ffaa17c80379b1a5b5f66865ee72e1c89584386.tar.bz2 cygnal-7ffaa17c80379b1a5b5f66865ee72e1c89584386.zip |
ChangeLog:
* configure.in: Remove --enable-server option. Allways add the
cygserver directory to $SUBDIRS.
* configure: Regenerate.
cygwin/ChangeLog:
Remove USE_SERVER define. Accommodate throughout.
* configure.in: Remove --enable-server option.
* configure: Regenerate.
* environ.cc: Remove CYGWIN=server setting.
cygserver/ChangeLog:
* client.cc (allow_server): Remove variable.
(client_request_get_version::client_request_get_version): Drop checking
allow_server.
utils/ChangeLog:
* passwd.c: Remove CYGWIN=server requirement from usage text.
doc/ChangeLog:
* cygserver.sgml: Remove the "How to use the Cygserver services"
section.
* cygwinenv.sgml: Move "(no)server" to the removed options section.
* faq-programming.xml: Remove CYGWIN=server requirement for running
the Cygwin testsuite.
* ntsec.sgml: Ditto for using `passwd -R'.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 654b92717..32493090f 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -1,7 +1,7 @@ /* fhandler_tty.cc Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008 Red Hat, Inc. + 2006, 2007, 2008, 2009 Red Hat, Inc. This file is part of Cygwin. @@ -528,10 +528,8 @@ fhandler_tty_slave::open (int flags, mode_t) HANDLE to_master_local; from_master_local = to_master_local = NULL; -#ifdef USE_SERVER if (cygserver_running == CYGSERVER_UNAVAIL || !cygserver_attach_tty (&from_master_local, &to_master_local)) -#endif { if (get_ttyp ()->master_pid < 0) { @@ -546,9 +544,7 @@ fhandler_tty_slave::open (int flags, mode_t) termios_printf ("*** couldn't find tty master"); return 0; } -#ifdef USE_SERVER termios_printf ("cannot dup handles via server. using old method."); -#endif HANDLE tty_owner = OpenProcess (PROCESS_DUP_HANDLE, FALSE, p->dwProcessId); if (tty_owner == NULL) @@ -642,9 +638,6 @@ int fhandler_tty_slave::cygserver_attach_tty (LPHANDLE from_master_ptr, LPHANDLE to_master_ptr) { -#ifndef USE_SERVER - return 0; -#else if (!from_master_ptr || !to_master_ptr) return 0; @@ -659,7 +652,6 @@ fhandler_tty_slave::cygserver_attach_tty (LPHANDLE from_master_ptr, *to_master_ptr = req.to_master (); return 1; -#endif } void @@ -1400,10 +1392,8 @@ fhandler_pty_master::setup (bool ispty) but rely on cygheap->inherited_ctty for descendant processes. In the future the cygserver may allow access by others. */ -#ifdef USE_SERVER if (cygserver_running == CYGSERVER_UNKNOWN) cygserver_init (); -#endif /* Create synchronisation events */ |