. Close symbol file before returning with 0 when an error occurred
while reading it. This will enable systems to umount that partition with no open file descriptor left over.
This commit is contained in:
parent
2c81663786
commit
50539e29d4
3
CHANGES
3
CHANGES
@ -2,6 +2,9 @@ Version 1.4
|
|||||||
|
|
||||||
. Skip newline when reading in klog messages
|
. Skip newline when reading in klog messages
|
||||||
. Use lseek64() instead of llseek() which is deprecated these days
|
. Use lseek64() instead of llseek() which is deprecated these days
|
||||||
|
. Close symbol file before returning with 0 when an error occurred
|
||||||
|
while reading it. This will enable systems to umount that
|
||||||
|
partition with no open file descriptor left over.
|
||||||
. Keith Owens <kaos@ocs.com.au>
|
. Keith Owens <kaos@ocs.com.au>
|
||||||
- Fixed bug that caused klogd to die if there is no sym_array available.
|
- Fixed bug that caused klogd to die if there is no sym_array available.
|
||||||
- When symbols are expanded, print the line twice. Once with
|
- When symbols are expanded, print the line twice. Once with
|
||||||
|
4
ksym.c
4
ksym.c
@ -102,6 +102,9 @@
|
|||||||
*
|
*
|
||||||
* Sun Feb 21 22:27:49 EST 1999: Keith Owens <kaos@ocs.com.au>
|
* Sun Feb 21 22:27:49 EST 1999: Keith Owens <kaos@ocs.com.au>
|
||||||
* Fixed bug that caused klogd to die if there is no sym_array available.
|
* Fixed bug that caused klogd to die if there is no sym_array available.
|
||||||
|
*
|
||||||
|
* Tue Sep 12 23:48:12 CEST 2000: Martin Schulze <joey@infodrom.ffis.de>
|
||||||
|
* Close symbol file in InitKsyms() when an error occurred.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -247,6 +250,7 @@ extern int InitKsyms(mapfile)
|
|||||||
if ( AddSymbol(address, sym) == 0 )
|
if ( AddSymbol(address, sym) == 0 )
|
||||||
{
|
{
|
||||||
Syslog(LOG_ERR, "Error adding symbol - %s.", sym);
|
Syslog(LOG_ERR, "Error adding symbol - %s.", sym);
|
||||||
|
fclose(sym_file);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user