James K. Lowden
jklowden at freetds.org
Mon Jan 28 11:15:29 EST 2008
Christos Zoulas wrote:
> On Jan 28, 8:53am, jklowden at freetds.org ("James K. Lowden") wrote:
> -- Subject: Re: [freetds] siginterrupt
> | ZIGLIO, Frediano, VF-IT wrote:
> | > I finally found why signal handling can be so different from system
> | > to system. The reason is RESTART flag. If this flag is set select do
> | > not interrupt and return EINTR but just continue.
> | My copy of Steven's UNP is at home. I think that flag may not be
> | standard?
> It is best practice to assume that it is not set and handle the INTR in
> a loop:
"If SA_RESTART has been set for the interrupting signal, it is
implementation-dependent whether select() restarts or returns with
Some "standard". The option exists but what it does varies.
More information about the FreeTDS