* 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.
This commit is contained in:
		| @@ -1,3 +1,14 @@ | |||||||
|  | 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> | 2006-01-03  Christopher Faylor  <cgf@timesys.com> | ||||||
|  |  | ||||||
| 	* dir.cc (readdir_worker): Minor code cleanup. | 	* dir.cc (readdir_worker): Minor code cleanup. | ||||||
|   | |||||||
| @@ -1856,8 +1856,8 @@ fhandler_console::need_invisible () | |||||||
|       h = horig = GetProcessWindowStation (); |       h = horig = GetProcessWindowStation (); | ||||||
|       if (myself->ctty == -1) |       if (myself->ctty == -1) | ||||||
| 	{ | 	{ | ||||||
| 	  h = CreateWindowStation (NULL, 0, WINSTA_ALL_ACCESS, &sec_none_nih); | 	  h = CreateWindowStation ("CygwinInvisible", 0, WINSTA_ALL_ACCESS, &sec_none_nih); | ||||||
| 	  termios_printf ("CreateWindowStation %p, %E", h); | 	  termios_printf ("CreateWindowStation(\"CygwinInvisible\", %p), %E", h); | ||||||
| 	  if (h) | 	  if (h) | ||||||
| 	    { | 	    { | ||||||
| 	      b = SetProcessWindowStation (h); | 	      b = SetProcessWindowStation (h); | ||||||
|   | |||||||
| @@ -229,7 +229,7 @@ fhandler_process::readdir (DIR *dir, dirent *de) | |||||||
|     strcpy (de->d_name, process_listing[dir->__d_position++]); |     strcpy (de->d_name, process_listing[dir->__d_position++]); | ||||||
|   res = 0; |   res = 0; | ||||||
| out: | 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; |   return res; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -616,7 +616,8 @@ spawn_guts (const char * prog_arg, const char *const *argv, | |||||||
| 	ProtectHandle (cygheap->pid_handle); | 	ProtectHandle (cygheap->pid_handle); | ||||||
|       else |       else | ||||||
| 	system_printf ("duplicate to pid_handle failed, %E"); | 	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 |   /* Some file types (currently only sockets) need extra effort in the parent | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user