📄 changelog-1999
字号:
(fhandler_console::write_normal): Add various fixes for console scrolling.Wed Aug 18 16:18:22 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc: Add more precise end-of-process detection.Wed Aug 18 00:03:47 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (sig_send): Work around apparent Windows bug which occasionally results in bogus error messages when a signal is dispatched.1999-08-17 DJ Delorie <dj@cygnus.com> * localtime.c (tzsetwall): Deduce TZ more accurately.Tue Aug 17 18:00:03 1999 Christopher Faylor <cgf@cygnus.com> * select.cc (peek_pipe): Correct detection of process group for backgrounded processes.Tue Aug 17 10:24:49 1999 Christopher Faylor <cgf@cygnus.com> * include/winnt.h: Fix typo in IMAGE_FIRST_SECTION definition.Sun Aug 15 19:11:49 1999 Mumit Khan <khan@xraylith.wisc.edu> * gcrt0.c (__eprol): Avoid namespace pollution. (_monstartup): Turn into a constructor function and prevent multiple invocations.Mon Aug 16 10:03:00 Corinna Vinschen <corinna@vinschen.de> * utils/mkgroup.c: Correct call to LookupAccountSid for retrieval of 'None'.Mon Aug 16 00:24:29 1999 Christopher Faylor <cgf@cygnus.com> * debug.cc (locker): Improve signal mutex locking. * exceptions.cc (sig_handle): Pass STOP signals to call_handler to ensure honoring of signal_mutex. (call_handler): Move STOP code here after acquistion of signal_mutex. * fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Track lockers for debugging. (fhandler_tty_common::__release_output_mutex): Ditto. (fhandler_slave::write): Fix faulty signal blocking code. * fork.cc (fork_copy): Remove ancient if 0. (fork): Conditionalize "FORKDEBUG" under DEBUGGING. * sigproc.cc (proc_terminate): Reduce pinfo lock time. (sigproc_terminate): Set sig_loop_wait after getting signal_mutex. (__get_signal_mutex): Reorganize for less strace output when not DEBUGGING. (__release_signal_mutex): Ditto. Reorganize case where !sig_loop_wait. (have_signal_mutex): Returns true if current thread has the mutex. * wait.cc (wait4): Change debugging message.Sat Aug 14 0:10:00 Corinna Vinschen <corinna@vinschen.de> * fhandler.cc (fhandler_base::raw_read): Set correct errno from Win32 error when ReadFile fails. (fhandler_base::raw_write): In case of ERROR_DISK_FULL, return bytes_written only if bytes_written > 0. * errno.cc: Map ERROR_DISK_FULL to ENOSPC.Fri Aug 13 14:22:12 1999 Christopher Faylor <cgf@cygnus.com> * select.cc (peek_pipe): Honor ignra argument.Fri Aug 13 00:45:00 1999 Christopher Faylor <cgf@cygnus.com> * spawn.cc (spawn_guts): Ensure that hExeced is set to proper state when parent has exited.Thu Aug 12 14:09:30 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (getsem): Fix typo which prevented sending signals to other processes.Wed Aug 11 22:06:33 1999 Christopher Faylor <cgf@cygnus.com> * cygwin.din: Export glob and globfree. * glob.h: Move to include. * Makefile.in: Correct glob.h dependencies.Wed Aug 11 19:41:04 1999 Sergey Okhapkin <sos@prospect.com.ru> * fhandler.cc (fhandler_disk_file::fstat): Check if the file is unix domain socket. (fhandler_disk_file::open): Call set_socket_p(). * fhandler.h: Add new fhandler type flags (FH_LOCAL, FH_FIFO). (fhandler_base): get/set_socket_p - new member functions. (fhandler_socket::addr_family): Add new member, currently unused. (fhandler_socket::get/set_addr_family): Add new functions to access addr_family. * include/sys/un.h: New file. * net.cc: Include <sys/un.h> (cygwin_socket): Always create socket of AF_INET family, store argument's family. (get_inet_addr): New static function. Converts AF_UNIX requests into corresponding AF_INET requests. (cygwin_sendto): Use get_inet_addr(). (cygwin_connect): Likewise. (cygwin_accept): Check for sockaddr length. (cygwin_bind): Implement AF_UNIX. * path.h (PATH_SOCKET): Add new enum value. (path_conv::issocket): Add new member function. (SOCKET_COOKIE): Add new define. * syscalls.cc (chmod): Mark socket files with system file attribute.Wed Aug 11 17:22:46 1999 Corinna Vinschen <corinna@vinschen.de> * utils/mkgroup.c (main): Generate "None" group when invoked via mkgroup -l.Tue Aug 10 21:30:31 1999 Christopher Faylor <cgf@cygnus.com> * select.cc (peek_pipe): Handle type ahead where appropriate. * sigproc.cc (proc_can_be_signalled): Revert to previous method for determining signalability. (getsem): Move PID_INITIALIZING test here. * wait.cc (wait4): Improve debug output slightly.Mon Aug 9 23:27:44 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (do_exit): Add additional check for valid hExeced. * exceptions.cc (call_handler): Implement a raceless way to track pending_signals. * signal.cc (kill_worker): Make calls from non-main threads synchronous or signals from a tty thread don't work right. * sigproc.cc (sig_send): Localize pending_signals assignment to only the wait_sig thread. (__get_signal_mutex): Don't attempt to grab a mutex if signal_mutex hasn't been assigned yet. Add more strace debugging information when -DDEBUGGING. (__release_signal_mutex): Don't attempt to release a mutex if signal_mutex hasn't been assigned yet. Add more strace debugging output. (wait_sig): Attempt to eliminate race in setting of pending_signals. * spawn.cc (spawn_guts): Set hExeced to INVALID_HANDLE_VALUE so that it will be obvious when a process is actually just an execed stub. * strace.cc (strace_vsprintf): Output a "!" after the pid when executing in an execed stub.Mon Aug 9 17:17:13 1999 Christopher Faylor <cgf@cygnus.com> Throughout, eliminate in() and out() macros. * winsup.h (tty_attached): Accept an argument indicating the pinfo structure to query. * exceptions.cc (really_exit): Cosmetic change. * external.cc (fillout_pinfo): Use queried pinfo structure for determining tty number, not *our* number. * net.cc: More workarounds. * path.cc (get_device_number): Supply argument to tty_attached. * syscalls.cc (ctermid): Ditto. * strace.cc (strace_dump): Remove. * include/sys/strace.h: Eliminate obsolete stuff.Sun Aug 8 22:54:45 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (call_handler): Process all signals on return from a signal dispatch. * sigproc.cc (proc_can_be_signalled): Guard against waiting too long when exiting. (proc_exists): Don't report an exited process as "existing". (proc_terminate): Close handle prior to testing for existence so that proc_exists will not always return TRUE. Eliminate use of zap_subproc. (stopped_or_terminated): Eliminate use of zap_subproc. (zap_subproc): Delete.Sun Aug 8 22:17:36 1999 Christopher Faylor <cgf@cygnus.com> * fhandler_tty.cc (fhandler_tty_master::init): hThread must remain open. Previous change to close it was wrong.Sun Aug 8 20:35:33 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc: Initalize NO_COPY variables. * pinfo.cc (record_death): Don't be so insistent about getting the pinfo lock. * sigproc.cc (proc_terminate): Tighten the region protected by the pinfo lock. * spawn.cc (spawn_guts): Eliminate the pinfo lock when reparenting as it is no longer required. (_spawnve): Tighten the region protected by the pinfo lock.Sun Aug 8 18:26:51 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (sig_send): Add more unfortunate guards against a system call being interrupted by a signal dispatch.Sat Aug 7 15:38:42 1999 Christopher Faylor <cgf@cygnus.com> * security.cc (get_admin_sid): Ensure that returned buf is not copied on a fork. (get_system_sid): Ditto. (get_create_owner_sid): Ditto. (get_world_sid): Ditto.Sat Aug 7 15:17:25 1999 Christopher Faylor <cgf@cygnus.com> * fhandler_tty.cc (process_input): Reset signal_arrived event prior to calling console read as this is now a requirement for functions which detect signal_arrived. (fhandler_tty_master::write): Allow signals to operate prior to raising SIGTTOU. (fhandler_tty_master::read): Allow signals to operate prior to raising SIGTTIN. * select.cc (peek_pipe): Detect attempt to read from tty not in our process group as a "read_ready" event. * include/shellapi.h: Add missing defines. * utils/ps.cc: Output windows pid as unsigned for Windows 9x.Sat Aug 7 14:30:00 Corinna Vinschen <corinna@vinschen.de> * security.cc (get_creator_owner_sid): New function. * shared.cc (sec_user): calls `get_creator_owner_sid' in creation of the security attributes structure additionally.Fri Aug 6 13:04:40 1999 Christopher Faylor <cgf@cygnus.com> * spawn.cc (spawn_guts): Allow failure from OpenProcess. The parent may have exited due to 7/31 change.Thu Aug 5 22:54:07 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (wait_for_me): Break out as a common function to check that the current process is ready to handle signals. (proc_can_be_signalled): Treat myself differently.Thu Aug 5 21:24:20 1999 Christopher Faylor <cgf@cygnus.com> * fhandler_console.cc (fhandler_console): Don't call tcinit here. (fhandler_console::read): Don't reset signal_arrived here. * syscalls.cc (_read): Set it here instead. * fhandler_termios.cc (fhandler_termios::line_edit): Only call accept_input when input is ready. Ignore iscanon in this case. * fhandler_tty.cc (fhandler_tty_slave::init): Don't call tcinit here.Thu Aug 5 16:02:25 1999 Christopher Faylor <cgf@cygnus.com> * strace.cc (handle_output_debug_string): Ignore errors reading from child memory as they seem to occur due to a process exiting. (close_handle): New, defensive code.Thu Aug 5 13:32:43 1999 Christopher Faylor <cgf@cygnus.com> * strace.cc (remove_handle): New function. (add_child): Speed up slightly. (proc_child): Use output of remove_child in CloseHandle.Thu Aug 5 12:38:50 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (dll_crt0_1): Don't protect subproc_ready if it is NULL. (do_exit): Avoid calling close_all_files if exiting from exec stub. * net.cc: Reorganize to work around some compiler bugs. * spawn.cc (spawn_guts): Set hExeced only after child stuff has been completely initialized. * syscalls.cc (_open): Protect against signals. * utils/strace.cc (warn): New function. (add_child): Issue warning when can't duplicate child process handle.Wed Aug 4 21:35:28 1999 Christopher Faylor <cgf@cygnus.com> * psapi.h: New file.Thu Aug 4 10:28:00 Corinna Vinschen <corinna@vinschen.de> * security.cc: Eliminate MALLOC_CHECK calls. (lookup_name): New function simplifies the retrieval of user and group names. (alloc_sd): Call `lookup_name' instead of `LookupAccountName'. * shared.cc (sec_user): Call `lookup_name' instead of `LookupAccountName'. Eliminate 'free' call on stack space. * winsup.h: Declare `lookup_name'.Wed Aug 4 16:24:02 1999 Christopher Faylor <cgf@cygnus.com> * a.out.h: Fix cut and paste from mime email typos.Mon Aug 2 19:08:48 1999 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Fix utils dependency. Make clean more assertive. * path.cc (mount_info::conv_to_win32_path): Fill in correct destination when a device name is detected. * syscalls.cc (chown): Always succeed when referencing a cygwin device. (chmod): Ditto. * net.cc (get_ifconf): Eliminate holdover from previous change.Mon Aug 2 13:07:44 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (do_global_ctors): Remove previous change. It was just wrong.Sun Aug 1 23:21:28 1999 Christopher Faylor <cgf@cygnus.com> Throughout rename 'slave_alive' handle to 'inuse'. * shared.h: Implement tty_attached() macro to determine when an actual tty is associated with the process. (class tty): Add some methods for manipulating an "inuse" event that is common to both master and slave parts of a tty. * dcrt0.cc (do_exit): Use tty_attached() to determine if signal should be sent to process group. * external.cc (fillout_pinfo): Return -1 if tty is not attached (i.e, attached to a console). * fhandler.h: Move more stuff into fhandler_tty_common and out from sub classes. * fhandler_console.cc (fhandler_console::read): Send SIGWINCH signal to *correct* process group. (fhandler_console::open): Fix incorrect argument ordering in set_ctty. (fhandler_console::de_linearize): Remove unneeded handle resets. * fhandler_tty.cc (fhandler_tty_slave::open): Fix incorrect argument ordering in set_ctty. Use tty create_inuse method to create inuse event. (fhandler_tty_slave::close): Delete. (fhandler_tty_slave::dup): Delete. (fhandler_tty_slave::write): Minor cleanup of flow of control. (fhandler_tty_common::dup): Subsume fhandler_tty_slave dup method. (fhandler_pty_master::fhandler_pty_master): Zero inuse field. (fhandler_pty_master::open): Set inuse field. (fhandler_tty_common::close): New, superclass method. (fhandler_tty_common::set_close_on_exec): Handle inuse field. (fhandler_tty_common::fixup_after_fork): Ditto. (fhandler_tty_slave::set_close_on_exec): Delete. (fhandler_tty_slave::fixup_after_fork): Delete. * path.cc (get_device_number): Use tty_attached() to figure out /dev/tty. * select.cc (peek_console): Send SIGWINCH signal to *correct* process group.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -