1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
1999-02-23  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* elf/dl-error.c (_dl_signal_cerror): New function.
	(_dl_signal_error): Don't call receiver function.
	* elf/dl-lookup.c (_dl_lookup_symbol): Call _dl_signal_cerror
	instead of _dl_signal_error when reporting references to undefined
	symbols or versions.
	(_dl_lookup_versioned_symbol): Likewise.
	(_dl_lookup_versioned_symbol_skip): Likewise.
	* elf/dl-version.c (match_symbol): Likewise.

	* elf/ldsodefs.h: Declare _dl_signal_cerror.

	* misc/getttyent.c (getttyent): Release lock on stream later to
	also protect global variable zapchar.
This commit is contained in:
Ulrich Drepper
1999-02-22 18:05:04 +00:00
parent 69b3b3cb38
commit 3f933dc2ef
6 changed files with 84 additions and 43 deletions

View File

@@ -93,7 +93,6 @@ getttyent()
if (*p && *p != '#')
break;
}
funlockfile(tf);
zapchar = 0;
tty.ty_name = p;
@@ -124,6 +123,8 @@ getttyent()
else
break;
}
/* We can release the lock only here since `zapchar' is global. */
funlockfile(tf);
if (zapchar == '#' || *p == '#')
while ((c = *++p) == ' ' || c == '\t')