Bug 1268 - Binary output to stdout
Summary: Binary output to stdout
Status: CLOSED MOVED
Alias: None
Product: flowd
Classification: Unclassified
Component: flowd (show other bugs)
Version: CVS
Hardware: Other Linux
: P2 enhancement
Assignee: Damien Miller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-05 15:33 AEDT by Brian Lindauer
Modified: 2022-02-25 13:55 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Lindauer 2006-12-05 15:33:23 AEDT
I'd like a way to run flowd in the foreground and print the binary logfile format to stdout.  This way, flowd could be more easily used as an input to a custom reader:

flowd --binary-to-stdout | custom-reader

This beats the domain socket solution in some cases, because there aren't issues with reader/writer synchronization on restarts.

After doing some work on this, I can see that it's easy to print to stderr, but stdout is closed (or dup'd to /dev/null) as part of the child process/privsep stuff, which I definitely don't understand.  So it does seem a little tricky.

If I get this working, I'll submit a patch.  But do you have any pointers about getting a working stdout?

Brian
Comment 1 Damien Miller 2019-01-23 20:02:30 AEDT
flowd is no longer maintained by me
Comment 2 Damien Miller 2022-02-25 13:55:22 AEDT
closing bugs resolved before the openssh-8.9 release