That's from graph.c (slightly cleaned-up):
/* parent */
wait_result = waitpid(fork_result, &status, 0);
if (wait_result == (pid_t) -1) {
traceEvent(CONST_TRACE_ERROR, "ERROR: GDC_out_pie(002) - wait
failed/interrupted");
} else if (wait_result != fork_result) {
traceEvent(CONST_TRACE_ERROR, "ERROR: GDC_out_pie(003) - unexpected
child termination");
} else if (status) {
traceEvent(CONST_TRACE_ERROR, "ERROR: GDC_out_pie(004) - child
abnormal termination");
} else {
return;
}
>From the man page:
The waitpid function suspends execution of the current process until
a
child as specified by the pid argument has exited, or until a signal
is
delivered whose action is to terminate the current process or to call
a
signal handling function. If a child as requested by pid has
already
exited by the time of the call (a so-called "zombie" process),
the
function returns immediately. Any system resources used by the
child
are freed.
...
RETURN VALUE
The process ID of the child which exited, or zero if WNOHANG was
used
and no child was available, or -1 on error (in which case errno is
set
to an appropriate value).
Make it look like this:
traceEvent(CONST_TRACE_ERROR, "ERROR: GDC_out_pie(002) - wait
failed/interrupted (%d - %s)",
errno,
(errno == ECHILD ? "ECHILD" :
errno == EINVAL ? "EINVAL" :
errno == EINTR ? "EINTR" : "unrecognized code"));
so we can see which code you're getting.
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Prashant Desai
Sent: Tuesday, February 25, 2003 12:34 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] GDC_out_pie(002) ERROR
Hi there
in my /var/log/messages file i am getting this
error "hostname ntop[23432]: ERROR GDC_out_pie(002) -
wait/interrupdate
what does this mean ?????? can this effect the rrd
plugin as my rrd plugin is not at all working ,
i am using ntop-2.1.56 with all the plugins and
compiled it on redhat 7.2 with gd chart support.
regards
Prashant
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop