diff options
author | Clive Lin <clive@FreeBSD.org> | 2002-06-22 06:25:41 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2002-06-22 06:25:41 +0000 |
commit | 0967cb972708c1866c69a7e0101f012d5f8c958a (patch) | |
tree | de8500d30b3334e3c1d36c662ca5ea7cab78384c /net/dictd | |
parent | ec4630227a9a4ae9e0b9b6a62906ef68dfa2759e (diff) | |
download | ports-0967cb972708c1866c69a7e0101f012d5f8c958a.tar.gz ports-0967cb972708c1866c69a7e0101f012d5f8c958a.zip |
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
...
Notes
Notes:
svn path=/head/; revision=61726
Diffstat (limited to 'net/dictd')
-rw-r--r-- | net/dictd/files/patch-libmaa::log.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/dictd/files/patch-libmaa::log.c b/net/dictd/files/patch-libmaa::log.c new file mode 100644 index 000000000000..183882fb8abb --- /dev/null +++ b/net/dictd/files/patch-libmaa::log.c @@ -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); |