curl-library
Is CURLOPT_NOSIGNAL a requirement?
Date: Thu, 12 Dec 2002 09:14:18 -0700
I'm writing an application, a photo viewer, that shows a 2x2 matrix of
Internet WebCams by continually redisplaying JPEG images over and over. This
is done by using 4 threads all running at once.
I keep seeing references to CURLOPT_NOSIGNAL, but I want to know if it
*must* be used. Problem is that when the timeout doesn't trigger, all the
cameras can get hung up because every minute or so I require that all threads
be killed and if the easy_perform() function hangs, the whole app hangs.
With the assumption that if one cam has a DNS timeout, say, then it's OK for
the other cams to be interrupted by a SIGALRM, would it be fair to say that
the CURLOPT_NOSIGNAL option is not *required* for multi-threaded
programs--only ones that would be affected in a bad way if all the threads
were interrupted?
-- - John Blanco - Senior Software Developer @ CorAccess Systems, Inc. - (303) 477-7757 ext. 6# - (720) 313-3562 cell - CorAccess Customer Support @ http://www.coraccesssystems.com/helpdesk/ ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/Received on 2002-12-12