From 95a8465ba0fb3ea0fb9033e4823b1f65c4554f27 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 5 Mar 2001 06:28:25 +0000 Subject: * dlopen.c (dlopen): Return NULL when name is NULL (suggested by chrisiasci@aol.com). * cygwin.din: Add a new, internally used export - _check_for_executable. * dcrt0.cc (dll_crt0_1): Set _check_for_executable for older binaries. Pass user_data to premain functions. * fhandler.cc (fhandler_disk_file::open): Only check for executable if the linked program is intereested in the executable bit. (fhandler_disk_file::check_execable_p): Delete. * fhandler.h (executable_states): New enumeration of various states of executable bit caring. (fhandler_base::set_execable_p): New method. * fhandler_termios.cc (fhandler_termios::line_edit): Flag when a signal has been sent to the tty. Return -1 when this is so. * fhandler_console.cc (fhandler_console::read): Return -1 when signal sending character encountered. * path.cc (path_conv::check): Record when path refers to a disk device. Move executable extension check here. (check_sysfile): Accomodate new EXEC path states. (has_suffix): Remove. (next_suffix): Remove. (class suffix_scan): New clas. (suffix_scan::has): New method. (suffix_scan:next): New method. (symlink_info::check): Use suffix_scan method to control for scanning for suffixes. * path.h (path_conv::exec_state): New method. * perprocess.h: Make "C" friendly. * include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_S_IEXEC. Bump CYGWIN_VERSION_API_MINOR. * include/sys/cygwin.h: Change premain declarations. * winsup.h: Move __cplusplus test to after builtin defines. --- winsup/cygwin/fhandler_termios.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'winsup/cygwin/fhandler_termios.cc') diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc index 1d0491379..046199903 100644 --- a/winsup/cygwin/fhandler_termios.cc +++ b/winsup/cygwin/fhandler_termios.cc @@ -165,6 +165,7 @@ fhandler_termios::line_edit (const char *rptr, int nread, int always_accept) { char c; int input_done = 0; + bool sawsig = FALSE; int iscanon = tc->ti.c_lflag & ICANON; while (nread-- > 0) @@ -210,6 +211,7 @@ fhandler_termios::line_edit (const char *rptr, int nread, int always_accept) termios_printf ("got interrupt %d, sending signal %d", c, sig); kill_pgrp (tc->getpgid (), sig); tc->ti.c_lflag &= ~FLUSHO; + sawsig = 1; goto restart_output; } not_a_sig: @@ -296,6 +298,11 @@ fhandler_termios::line_edit (const char *rptr, int nread, int always_accept) if (!iscanon || always_accept) set_input_done (ralen > 0); + if (sawsig) + { + // tc->write_error = EINTR; + input_done = -1; + } if (input_done) (void) accept_input (); -- cgit v1.2.3