📄 changelog-1999
字号:
* tty.cc (tty::master_alive): New method. (tty::create_inuse): New method.Sun Aug 1 16:23:22 1999 Christopher Faylor <cgf@cygnus.com> * net.cc (get_ifconf): Use alloca for temporary buffer.Sun Aug 1 01:38:20 1999 Christopher Faylor <cgf@cygnus.com> Modify de_linearize methods throughout to set unix and msdos path names. * dcrt0.cc (do_exit): Only remove shared memory when we're done with it. * exceptions.cc (try_to_debug): Move static variable outside of the function so that it can more easily be set with gdb. * fhandler_console.cc (fhandler_console::open): Handles are typically hexadecimal in debugging output. (fhandler_console::open): Do not open inherit console handles by default. (fhandler_console::dup): Just use open method to "duplicate" a console handle. (fhandler_console::fixup_after_fork): Do *not* close handles here since they have not been inherited. (fhandler_console::de_linearize): Ditto. * utils/strace.cc (create_child): Correct debugging flags when not tracking forked processes.Sat Jul 31 20:10:58 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (do_global_ctors): Ensure that ctors are not called more than once per session. * fork.cc (fork): Use sig_protect to protect against signals during fork. * pinfo.cc (lpfu): Show windows pid in debugging message as this is generally more useful. * pinfo.cc (unlock_pinfo): Issue an error if ReleaseMutex fails. (pinfo::record_death): Actually unlock pinfo on exit rather than allow ExitProcess to do this since ExitProcess can sometimes take a *long* time. * spawn.cc (spawn_guts): Ensure that pinfo is always unlocked.Thu Jul 29 23:43:24 1999 Christopher Faylor <cgf@cygnus.com> Throughout, consolidate pgid processing for console and tty into fhandler_termios and tty_min. * debug.h: Make WF?O functions the defaults for dealing with Waits. These functions attempt to work around signal interrupt problems. * debug.cc: Ditto. * exceptions.cc (call_handler): Don't wait a long time for second attempt to get signal mutex. * fhandler_console.cc (fhandler_console::open): Set the "controlling tty". * fhandler_termios.cc: Move the ctty and pgid functions here. (fhandler_termios::line_edit): Fix debug output. * fhandler_tty.cc (fhandler_tty_slave_write): Use sig_protect to protect against output_mutex deadlock. * fork.cc (get_vfork_val): Conditionalize with NEWVFORK. * syscalls.cc (setsid): Add debugging output. (setpgid): Reorganize and add debugging output. * tty.cc (tty::init): Use a method to clear the sid.Thu Jul 29 23:42:53 1999 Christopher Faylor <cgf@cygnus.com> Patch from Egor Duda <deo@logos-m.ru>: * grp.cc (read_etc_group): Use a default /etc/group entry when one doesn't exist. (getgrgid): Ditto. * passwd.cc (read_etc_passwd): Use a default /etc/passwd entry when one doesn't exist. (search_for): Ditto. * uinfo.cc (read_etc_group): Remove some defines. * winsup.h: Move them here.1999-07-29 Bernd Schmidt <bernds@cygnus.co.uk> * Makefile.in (SUBDIRS_AFTER): Build mingw before utils. * utils/Makefile.in (MINGW_LDFLAGS): Add "-B../mingw/"Tue Jul 27 23:31:28 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc: Add experimental vfork_storage initialization. (do_exit): Ditto. * exec.cc: Use _spawnve throughout as a common interface for execing a program. * fork.cc (vfork): Add beginnings of true vfork support. * path.cc (sort_by_posix_name): Remove special casing of zero length names since they should now be eliminated earlier on. (sort_by_native_name): Ditto. (mount_info::del_item): Remove hole from mount table specifically, here or suffer weird behavior. Suggested by Andrew Dalgleish <andrewd@axonet.com.au>. * shared.cc: Make SHAREDVER "unsigned" to avoid a compiler warning. * spawn.cc : Accommodate additional argument to _spawnve, throughout. (_spawnve): Make this a global function and take an hToken argument so that it can be used by sexecve. Accommodate experimental vfork functionality. * winsup.h: Add initial support for per-thread vfork stuff. * include/cygwin/version.h: Bump shared memory version number.Mon Jul 26 20:59:58 1999 Christopher Faylor <cgf@cygnus.com> * path.cc (sort_by_posix_name): Report two zero length strings as being equal or suffer an infinite loop. (sort_by_native_name): Ditto. * shared.cc (shared_info::initialize): Refuse to use a different DLL's shared memory. * shared.h: Fix mask for child_info sanity test.Sun Jul 18 16:30:31 1999 Christopher Faylor <cgf@cygnus.com> * security.cc: Various changes from Corinna.Sat Jul 17 22:33:45 1999 Christopher Faylor <cgf@cygnus.com> * fork.cc (fork): Change DuplicateHandle slightly. * security.cc (get_nt_attribute): Ignore error return from set_process_privileges. (set_nt_attribute): Ditto.Sat Jul 17 00:45:34 1999 Christopher Faylor <cgf@cygnus.com> * debug.h: Fix ForceCloseHandle1 in non-debug case.Fri Jul 16 23:47:31 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (proc_can_be_signalled): Accommodate different flavors of myself. * include/ddeml.h: Add missing struct. * include/wingdi.h: Add missing defines.Fri Jul 16 23:01:30 1999 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Attempt to cope when srcdir is a relative pathname. * fork.cc (fork): Pass handle to parent process to fixup_after_fork. Eliminate excess unlock_pinfos. * hinfo.cc (hinfo::fixup_after_fork): Use inherited parent handle rather than try to open the parent process explicitly. * pinfo.cc (record_death): Cosmetic change. * sigproc.cc (wait_sig): Add a debugging statement. * winsup.h: Reflect change of argument for fixup_after_fork.Fri Jul 16 11:07:55 1999 Christopher Faylor <cgf@cygnus.com> * shared.h: Eliminate record_death_nolock. Just pass an argument to record_death. * pinfo.cc (record_death_nolock): Ditto. * dcrt0.cc (__api_fatal): Use record_death with FALSE argument rather than record_death_nolock. * exceptions.cc (really_exit): Ditto. * fork.cc (fork): Remove debugging statement.Wed Jul 14 22:08:52 1999 Christopher Faylor <cgf@cygnus.com> Throughout, make parent_alive a local variable. Rename 'alive_parent' to 'my_parent_is_alive'. * autoload.h: Improve the description of the autoload mechanism. * dcrt0.cc: Define parent_alive here. (dll_crt0_1): When debugging, rotect handles inherited from fork/exec. Force signal thread to finish initializing prior to calling main. (dll_crt0): Reorganize child_info stuff to allow common initialization. Accept parent_alive handle from invoker and ensure that this is not inherited by other processes. (do_exit): Ensure that exit_state is not duplicated by a fork. (__api_fatal): Call 'try_to_debug' directly. * debug.cc: Increase the size of the handle list. (threadname): Add an optional argument to control locking. * exceptions.cc (error_start_init): Make this a "C" function. (try_to_debug): Ditto. Also, use Sleep rather than pause and loop so that gdb can get in to interrupt things. (sig_handle): * external.cc (fillout_pinfo): Reorganize slightly and plan for the future. * fhandler.h: Add an argument to show the name of the handle for error messages to fork_fixup. * fhandler.cc (fhandler_base::fork_fixup): Ditto. (set_inheriting): Rename a variable for clarity. (fhandler_base::fixup_after_fork): Pass in the name of the handle to fork_fixup. * fhandler_tty (fhandler_tty_common:fixup_after_fork): Ditto. (fhandler_tty_slave:fixup_after_fork): Ditto. (fhandler_tty_master:fixup_after_fork): Ditto. * fhandler_windows.cc (fhandler_windows::fixup_after_fork): Ditto. * fhandler_console.cc (fhandler_console::open): Specifically open console with ENABLE_PROCESSED_INPUT. * fork.cc (sync_with_child): Call abort when DEBUGGING and there's an error. (resume_child): Ditto. Also, allow an ERROR_INVALID_HANDLE error if it can't be duplicated as they seem to occur occasionally when the parent copies the stack. (fork): Use init_child_info to initialize structure passed to child. Remove start time setting in favor of common function. Don't mess with parent's parent_alive. * heap.cc (sbrk): Simply code slightly. * hinfo.cc (hinfo::dup2): Improve error handling. * pinfo.cc (set_myself): Set start time here since it is called by everything which sets myself. (pinfo_init): Remove start_time setting in favor of common function. * shared.h (pinfo): Reorganize so that signal stuff falls into section of pinfo which is automatically zeroed when a new pid is initialized. (PROC_MAGIC): Increment to detect cygwin1.dll's memory passing disparities. * sigproc.cc (proc_alive): Make this a function. Wait for target pid to initialize. (my_parent_is_alive): Rename from alive_parent. (proc_can_be_signalled): Renamed from proc_alive macro. (proc_exits): Use proc_can_be_signaleed(). (proc_subproc): Don't put parent_alive in child. (proc_terminate): Close hwait_subproc in a race-safe way. Ditto sync_proc_subproc. (sigproc_terminate): Always terminate proc_subproc thread first or it may try to use signal thread as it is going away. Wait for signal thread to exit. (sig_send): Use proc_can_be_signalled(). (init_child_info): New function. Initializes memory block passed by spawn/fork. (mutex_stack): Add thread name field. (sig_wait): Set active state after all handles have been set up and before protecting the handles. Use ForceCloseHandle to close subproc_ready as it is now protected. Close signal_mutex here. * sigproc.h: Accommodate alive_parent rename. * spawn.cc Use init_child_info to initilize memory block passed to subprocess. * strace.cc (__system_printf): Write to screen before writing to strace log. Only write to strace log if we're actually stracing. * winsup.h: Declare the 'action on error' functions. * utils/Makefile.in: (Patch from Egor Duda <deo@logos-m.ru>) Compile strace using -mno-cygwin. * utils/strace.cc: Allow ingw concession from Egor Duda. Attempt to allow CTRL-C when stracing.Thu Jul 14 0:39:00 Corinna Vinschen <corinna@vinschen.de> * security.cc (alloc_sd): Delete special handling of uid/gid 513.Thu Jul 13 15:01:00 Corinna Vinschen <corinna@vinschen.de> * fhandler.cc (get_file_owner): Fix typo. * path.cc (path_conv::path_conv) : Change `return' to `goto end' in case of SYMLINK_IGNORE is set.Mon Jul 5 21:33:00 Corinna Vinschen <corinna@vinschen.de> * security.cc (WriteSD): Doesn't set errno if BackupWrite() returns ERROR_INVALID_SECURITY_DESCR (which happens on FAT).Sat Jul 10 13:17:20 1999 Christopher Faylor <cgf@cygnus.com> * utils/strace.cc (error): Actually output error message. (add_child): Duplicate inherited child process handle with all of the privileges that we need.Fri Jul 9 01:37:23 1999 Geoffrey Noer <noer@cygnus.com> * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 14 in honor of snprintf and vnsprintf additions.Fri Jul 9 00:04:03 1999 Christopher Faylor <cgf@cygnus.com> * path.cc (path_conv::path_conv): Correct buffer overflow condition. * fhandler_console.cc (fhandler_console::open): *Need* to enable processed input or CTRL-C won't stop anything unless it's at a prompt. (fhandler_console::input_tcsetattr): Ditto.Thu Jul 8 18:27:49 1999 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Add malloc debugging options. * dcrt0.cc (api_fatal): Call abort when debugging so that the debugger will pop up. * debug.cc (close_handle): Unlock in pathological case. * fhandler_console.cc (fhandler_console::read): Always respond to windows size changes. (fhandler_console::open): Always set things to ~ENABLE_PROCESSED_INPUT so that we can control INTR character. Don't set pgid here. (fhandler_console::input_tcsetattr): Turn on windows event so that we can see screen resizes. (fhandler_console::init): Don't set pgid here. * fhandler_termios (fhandler_termios::tcinit): Set pgid here. * fhandler.h: Fix set_has_acls method return. * utils/strace.h: Pass CTRL-Cs to child process.Wed Jul 7 23:59:50 1999 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Improve dependencies. * autoload.h: Work around "function unused" messages for autoload init functions. * configure.in: Use CHECK_TOOL to find CC so that it will get the proper host alias. * configure: Regenerate. * dcrt0.cc (do_exit): Minor reorganization of termination function calls. * debug.cc (close_handle): Issue an error when an attempt is makde to close a handle with a name different from the one used to record it previously. * debug.h: Implement new macros for storing arbitrary handle names. * exceptions.cc (handle_signal): Terminate the main thread when exiting due to signal in signal thread. * fhandler.h: Add an extra 'fd' argument to all ready_for_read methods. * select.cc: Ditto, throughout. * fhandler_console (get_tty_stuff): Protect the tty_stuff handle here. * fhandler_termios.cc (fhandler_termios::line_edit): Accommodate fd argument to ready_for_read. * fhandler_tty.cc (fhandler_tty_master::init): Close an unneeded thread handle. * fork.cc (fork): Use standard name when protecting process handle. * spawn.cc (spawn_guts): Ditto. * shared.cc (open_shared_file_map): Protect cygwin_shared handle here. * sigproc.cc: Throughout, close child process handle using standard name. * syscalls.cc (read_handler): Check that fd is still open prior to performing an operation. Supply fd argument for ready_for_read. * (_read): Supply fd argument for read_for_read. * tty.cc (tty_list::terminate): Close unneeded handles as tty is closing down. (tty_list::allocate): Protect against signals.Mon Jul 5 14:52:40 1999 Christopher Faylor <cgf@cygnus.com> * cygwin.din: Export new snprintf and vnsprintf functions courtesy of Egor Duda <deo@logos-m.ru>.Sun Jul 4 23:54:43 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (sigbegin): New function. Called prior to dispatching to signal handler. (sigreturn): New function. Called after signal handler ret
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -