cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: Signal handling problem in libcurl
Dan Fandrich wrote:
> The right approach is probably to find some way to interrupt the resolver
> from within the signal handler and have it abort normally with an error
> code (a flag set within the signal handler would tell if the abort was
> due to timeout or not). That would allow the flow of control to remain
> outside the signal handler and avoid this problem. The question is: is
> it possible to force a resolver to abort like this (maybe by sending
> it another signal), and if so, is it portable?
The only way I can think of is to run the resolver in a child process,
with the result communicated by pipe, and kill the child process if
you don't want it any more.
Received on 2008-09-19
These mail archives are generated by hypermail.
Page updated November 12, 2010.
File upload with ASP.NET
web site info