Update of /export/home/ntop/ntop
In directory jabber:/tmp/cvs-serv29736

Modified Files:
        globals.h graph.c 
Log Message:
(Note to Luca - I've only tested under Linux, so if it doesn't work, 
 well, just back it out (it's self contained).  However, it should
 work - this is generic code from the GNU C documentation)

This change implements a "watchdog" on the gdchart creation of pie charts.

If you have a compile/runtime version mis-match, there is an abort() call
in libpng, which kills the web browser thread. Bad...

This change uses the fork() call to let the gdchart creation run in a 
separate thread.  It uses the parent thread as a watchdog to monitor
a status variables to detect failure.

If the generation of the chart fails, a billboard graphic, pie-error.png
is sent to the user instead.  The specific failure is logged for 
the admin to use.

-----Burton (ref 149)



_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to