Restartable system call behaviour

Pete French petefrench at ticketswitch.com
Thu Feb 2 02:20:07 PST 2006


> To the best of my knowledge, connect() being always interruptable
> is correct and well-known.

Fair enough, that answers my question!

> And my 4.11-STABLE system will interrupt connect() on a signal with
> SA_RESTART set, which disagrees with your observations yet agrees with
> the standard.  Perhaps some logic in your software has changed since
> 4.11 times.

Have been puzzling over this a lot actually, as I definitely didnt get
it on 4.11. The conclusion I've come to is that the networking circumstances
have also changed over time, such that it's now more likely for me to get
a signal during a connect, hence it probably always did behave that way, just
that I never saw it. The change to 5 would be a co-incidence then.

thanks,

-pete.


More information about the freebsd-stable mailing list