Skip to Content.
Sympa Menu

freetds - Re: [freetds] siginterrupt

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] siginterrupt
  • Date: Mon, 28 Jan 2008 11:15:29 -0500

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:
>
> http://www.opengroup.org/pubs/online/7908799/xsh/select.html

Especially because:

"If SA_RESTART has been set for the interrupting signal, it is
implementation-dependent whether select() restarts or returns with
[EINTR]."

Some "standard". The option exists but what it does varies.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page