apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Trawick" <traw...@gmail.com>
Subject [BUG?] apr_proc_other_child_refresh passes wrong status flavor to maintenance function
Date Wed, 24 Jan 2007 14:44:22 GMT
In this code, a Unix-style signum|exitcode|bits is passed to the
maintenance function from within apr_proc_other_child_refresh().

    waitret = waitpid(ocr->proc->pid, &status, WNOHANG);
    if (waitret == ocr->proc->pid) {
        ocr->proc = NULL;
        (*ocr->maintenance) (APR_OC_REASON_DEATH, ocr->data, status);
    }

But for other calls to the maintenance function with
APR_OC_REASON_DEATH we expect that a signum_or_exitcode is passed to
the maintenance function (API breakage mentioned separately via
http://svn.apache.org/viewvc?view=rev&revision=499417).  It doesn't
make sense to pass a Unix-style status here.

Thoughts?

Mime
View raw message