> But if the function itself runs for longer than 10 seconds, there > will be a major problem, as the sleep apparently takes the argument as > unsigned, and a negative number is a very big sleep! Launch each call in a separate thread. If the calls are independent, this could be a solution. Laurent