Skip to Content.
Sympa Menu

freetds - Re: [freetds] infinite loop in dbcancel

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Sergio NNX <sfhacker AT hotmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Cc: "freddy77 AT gmail.com" <freddy77 AT gmail.com>
  • Subject: Re: [freetds] infinite loop in dbcancel
  • Date: Fri, 18 Mar 2016 09:41:06 +1100

> You can. However I think on Windows you have to call a function to set the
> error and I don't know which constant would be better. On Windows these
> kind of error (socket ones) have no relation with c errno

I don't know whether or not it is a good practice, but you could set errno to
the value of WSAGetLastError() and then use gai_strerror() or FormatMessage()
or whatever you prefer.






Archive powered by MHonArc 2.6.24.

Top of Page