mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Do not fclose(3) a NULL stream. I bet no one will want his dmesg(8) output
to be spammed by ... pid 12345 (dictd), uid 54321: exited on signal 11 pid 23456 (dictd), uid 54321: exited on signal 11 pid 34567 (dictd), uid 54321: exited on signal 11 ...
This commit is contained in:
parent
ec4630227a
commit
0967cb9727
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61726
11
net/dictd/files/patch-libmaa::log.c
Normal file
11
net/dictd/files/patch-libmaa::log.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- libmaa/log.c.orig Sat Jun 22 14:12:51 2002
|
||||
+++ libmaa/log.c Sat Jun 22 14:12:56 2002
|
||||
@@ -245,7 +245,7 @@
|
||||
{
|
||||
if (logFd >= 0) close( logFd );
|
||||
if (logUserStream != stdout && logUserStream != stderr)
|
||||
- fclose( logUserStream );
|
||||
+ if (logUserStream) fclose( logUserStream );
|
||||
if (logSyslog) closelog();
|
||||
if (logFilename) xfree(logFilename);
|
||||
if (logFilenameTmp) xfree(logFilenameTmp);
|
Loading…
Reference in New Issue
Block a user