I am quite sure that the problem is located in the function exec. At
some point, that function hangs up. Why? Not easy to know. But is it
possible to log it? Ordinary self made log function doesnt give
anything. Apache error log doesnt give anything either. How can I
analyze what is going on with that function?