Thanks for the help. I'm not trying to kill the process. I stated that the
process didn't die to show that it didn't reach the "got here2" because it
was blocking.

On Tue, Dec 27, 2016 at 6:40 PM Jeremie Courreges-Anglas <[email protected]>
wrote:

> Luke Small <[email protected]> writes:
>
> > It says "got here1", doesn't say "got here2", and the process doesn't
> die.
> > Since it isn't reading anything from sockfd which is "listen"ing, I
> expect
> > it to fail. Is it too much to ask it to fail?
>
> SOCK_NONBLOCK doesn't do what you think it does.  The manpage says under
> which conditions an accept() call doesn't block.
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>

Reply via email to