Closed bool101 closed 8 years ago
True, but at the very least I am currently dup2(1,2) to redirect stderr to stdout and changing stdio to non buffered mode on the server side. So, it's still good to do a simple test.
Captured from Slack
10:13 PM] cseagle: bool getpeername(0, ...) should work fine in an inetd program that was launched from xinetd
[10:13 PM] cseagle: need to check error code and ignore failures when you are just running from the command line for testing
[10:13 PM] cseagle: because getpeername(0, ...) will fail with ENOTSOCK
Ping. This gatekeeper branch needs tests. I'd recommend using bats
: https://github.com/sstephenson/bats
xinetd
doesn't make any changes such that something that works onstdin
andstdout
won't work