]> mj.ucw.cz Git - libucw.git/commitdiff
Logging: Mention closing logfiles before exec in the docs.
authorMartin Mares <mj@ucw.cz>
Mon, 16 Feb 2009 21:45:09 +0000 (22:45 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 16 Feb 2009 21:45:09 +0000 (22:45 +0100)
ucw/doc/log.txt

index ded657f47160096f4bb9bc0becfc0bcf2c1e6ed8..a24a50ddddfea3549f1df2fed874fe855f6c9fbd 100644 (file)
@@ -93,7 +93,9 @@ Processes, threads and signals
 ------------------------------
 When you fork a new process, it automatically inherits all currently configured log
 streams. You should however call <<log_fork()>> to update the logger's notion
-of the current PID (at least when you use PID's in your log messages).
+of the current PID (at least when you use PID's in your log messages). Also, if you
+plan to exec() a process after fork(), do not forget to call <<log_close_all()>>,
+so that all file descriptors used for log files (except for stderr) are closed.
 
 The <<basics:msg()>> function itself can be called from multiple threads in parallel
 and it is atomic by design. The functions for setting up the logging machinery