Hello!
> I wanted to know what
> is the "correct" behavior for connect() by default with signal().
This simply does not matter, that's answer.
Actually, it is not so easy to implement restartable connect().
I think this is the only reason why it not restartable in some OSes.
BTW could you make the following experiments on the same OSes:
connect() on nonblocking socket, then repeat the connect()
until it returns EISCONN. I guess the behaviour also will be different.
> it should be trivial to hand edit my prevoius patch posted.
Yes, of course. Though the first part of it also from the class
"does not matter", it is worth to do this just for sanity.
Alexey
|