[net.unix] Connecting to sockets

ded@milo.UUCP (Don E. Davis) (10/29/85)

I have two programs which communicate through sockets.
One program accept()'s connect()ions from the other program.
When the "accepting" program runs first, everything works fine.
When I run the "connecting" program first, it fails for ECONNREFUSED
the first time (reasonable enough), but thereafter it fails for
EINVAL (which I don't understand).  And, in fact, the "connecting"
program will continue to fail even after I've invoked the "accepting"
program.  What goes on here?