Re: mutilog via fifo
Daryl Tester <[email protected]> Sun, 03 Aug 2008 11:32:14 +0930
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
(* Replyto set to avoid auto responders - *sigh* *) richard lucassen wrote: > So, what's the difference between elhttp using "/dev/stdout" as logfile > and e.g. publicfile? I honestly don't know. I would have expected /dev/stdout and the real stdout to be similar (at least writing to the same file descriptor), *except* that they won't be sharing the same file table entry (unless open(2) is treating the "/dev/std*" entries differently than other files and reusing the entry). It's something I need to sit and think about ... > Apparently publicfile sends its logs in a different way to stdout? I'm not sure about publicfile (haven't used it), but most/all of djb's tools send their logging to stdout/stderr - it's your using of /dev/stdout that's different ... wait a sec. You're using tcpserver - isn't stdout (as well as stdin) wired to the incoming tcp socket (particularly when elhttp gets around to opening it)? Don't you want to be using /dev/stderr? Cheers, --dt