diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-04 03:43:55 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-04 03:43:55 +0000 |
commit | 4c15746236d2fe169d795eca57a8a73f0e8fd096 (patch) | |
tree | 7488e204907f1fd221c26123d4ebee3625200dcd | |
parent | a4b5f2b383d864d6f7671a42b4c5a892199fb689 (diff) | |
download | newlib-4c15746236d2fe169d795eca57a8a73f0e8fd096.zip newlib-4c15746236d2fe169d795eca57a8a73f0e8fd096.tar.gz newlib-4c15746236d2fe169d795eca57a8a73f0e8fd096.tar.bz2 |
* fhandler_process.cc (fhandler_process::readdir): Add missing argument to
syscall_printf.
* fhandler_console.cc (fhandler_console::need_invisible): Use made-up name for
windows station rather than asking Windows to create one for us.
* spawn.cc (spawn_guts): Don't mess with console if we're detaching.
-rw-r--r-- | winsup/cygwin/ChangeLog | 11 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 4 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/spawn.cc | 3 |
4 files changed, 16 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f388ca7..a26345f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,16 @@ 2006-01-03 Christopher Faylor <cgf@timesys.com> + * fhandler_process.cc (fhandler_process::readdir): Add missing argument + to syscall_printf. + + * fhandler_console.cc (fhandler_console::need_invisible): Use made-up + name for windows station rather than asking Windows to create one for + us. + + * spawn.cc (spawn_guts): Don't mess with console if we're detaching. + +2006-01-03 Christopher Faylor <cgf@timesys.com> + * dir.cc (readdir_worker): Minor code cleanup. * fhandler_console.cc (beep): Use a more Windows-generic wav file if diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 4318863..c10098b 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1856,8 +1856,8 @@ fhandler_console::need_invisible () h = horig = GetProcessWindowStation (); if (myself->ctty == -1) { - h = CreateWindowStation (NULL, 0, WINSTA_ALL_ACCESS, &sec_none_nih); - termios_printf ("CreateWindowStation %p, %E", h); + h = CreateWindowStation ("CygwinInvisible", 0, WINSTA_ALL_ACCESS, &sec_none_nih); + termios_printf ("CreateWindowStation(\"CygwinInvisible\", %p), %E", h); if (h) { b = SetProcessWindowStation (h); diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 253bd4d..cb7d907 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -229,7 +229,7 @@ fhandler_process::readdir (DIR *dir, dirent *de) strcpy (de->d_name, process_listing[dir->__d_position++]); res = 0; out: - syscall_printf ("%d = readdir (%p, %p) (%s)", dir, de, de->d_name); + syscall_printf ("%d = readdir (%p, %p) (%s)", res, dir, de, de->d_name); return res; } diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 23b0ca5..9f96595 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -616,7 +616,8 @@ spawn_guts (const char * prog_arg, const char *const *argv, ProtectHandle (cygheap->pid_handle); else system_printf ("duplicate to pid_handle failed, %E"); - set_console_state_for_spawn (real_path.iscygexec ()); + if (mode != _P_DETACH) + set_console_state_for_spawn (real_path.iscygexec ()); } /* Some file types (currently only sockets) need extra effort in the parent |