]> mj.ucw.cz Git - libucw.git/commit
Logging: Resurrected the log_file() interface.
authorMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 18:32:48 +0000 (19:32 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 18:32:48 +0000 (19:32 +0100)
commit9aa671e874bcd0b3d05cb9e74e3c80d96422e620
treed81c29268e26d26faa70166bd8c93de0c8c17ab4
parent622439339747407ea7bb7db1bcba14eab1d32cbd
Logging: Resurrected the log_file() interface.

It is still useful for programs that use just a single log file. It creates
a new file stream and connects it as a substream of stream #0, replacing
the previous substreams.

Also keep fd #2 as a duplicate of the log file fd, so that errors of exec'd
programs will not be lost.
ucw/log-file.c