* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no

tty.
This commit is contained in:
Christopher Faylor
2001-05-04 20:39:38 +00:00
parent 8b3bcfbab9
commit 17743fbc49
17 changed files with 63 additions and 76 deletions

View File

@ -2837,17 +2837,13 @@ hash_path_name (unsigned long hash, const char *name)
if (name[1] == ':')
{
char *nn, *newname = (char *) alloca (strlen (name) + 2);
nn = strncpy (newname, name, 2);
if (isupper (*nn))
*newname = cyg_tolower (*nn);
*(nn += 2) = '\0';
nn = newname;
*nn = isupper (*name) ? cyg_tolower (*name) : *name;
*++nn = ':';
name += 2;
if (*name != '\\')
{
*nn = '\\';
*++nn = '\0';
}
strcpy (nn, name);
*++nn = '\\';
strcpy (++nn, name);
name = newname;
goto hashit;
}