Re: [Exim] return value from "exim -R example.com"?

Pàgina inicial
Delete this message
Reply to this message
Autor: Ben Smithurst
Data:  
A: Paul Mansfield
CC: Exim users mailing list
Assumpte: Re: [Exim] return value from "exim -R example.com"?
Paul Mansfield wrote:

> I checked the document, http://www.exim.org/exim-html-3.00/doc/html/spec.html,
> and couldn't find an answer... and searched it for "return"...
>
> If I invoke "exim -R example.com" to force delivery, what are the return
> values?
>
> I've been getting -1 on occasion, not sure what this means.


But exit(-1) gives the exit status (reported by $? in sh and
WEXITSTATUS) being 255, so how could you get -1 ? I've seen something
like this when I wrote a dodgy bit of perl which did something like:

$SIG{CHLD} = { 1 while wait != -1 };

# ... stuff ...

system "foo", "bar", "baz";
die "foo exit status was $?" if $? != 0;

In that case, $? may well be -1, since the CHLD handler's wait will
pick up the dead child, and the system's wait will get ECHILD, I
beleive. Whether this is what you're doing or not I don't know, you'd
probably have to give people more to work on, e.g. how you getting the
return value ($? in sh/perl, wait() and friends in C, etc...)

Just a thought, anyway, you'll probably have to wait for Philip to give
the correct answer.

-- 
Ben Smithurst            | PGP: 0x99392F7D
ben@??? |   key available from keyservers and
                         |   ben+pgp@???