[Nagiosplug-devel] check_dns: DNS WARNING - nslookup returned error status

sean finney seanius at seanius.net
Fri Sep 2 04:26:26 CEST 2005


now, a question about this patch...

the code in question:

==
    while (waitpid (pid, &status, 0) < 0)
    {
        if (errno == ECHILD)
            return (0);                         /* Child has already exited */

        if (errno != EINTR)
            return (1);                         /* error other than EINTR from waitpid() */
    }

    if (WIFEXITED (status))
        return (WEXITSTATUS (status));  /* return child's termination status */

    return (1);
==

does this remove the check for the child's exit status?



	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://nagios-plugins.org/archive/devel/attachments/20050902/d72c3cdf/attachment.sig>


More information about the Devel mailing list