Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Aug 2007 17:30:29 -0500
From:      Don Hinton <don.hinton@vanderbilt.edu>
To:        freebsd-questions@freebsd.org
Cc:        RW <fbsd06@mlists.homeunix.com>
Subject:   Re: How does Sendmail know how it was invoked?
Message-ID:  <200708041730.29754.don.hinton@vanderbilt.edu>
In-Reply-To: <20070804221341.6880cbb4@gumby.homeunix.com.>
References:  <20070804190634.69234e1e@gumby.homeunix.com.> <200708041548.11996.don.hinton@vanderbilt.edu> <20070804221341.6880cbb4@gumby.homeunix.com.>

next in thread | previous in thread | raw e-mail | index | archive | help

> I don't think that's right. As I understand it, the argv argument to
> execve() is passed-on directly as the child processes arguments, and
> the parent can write whatever it likes into argv[0] - it's only
> convention that it's a filename. So mailwrapper passes its own
> argv[0] as sendmail's argv[0]. And so sendmail behaves as if it had been
> invoked as mailq or whatever.

You're exactly right.  I misread the man file and did a little test to confirm 
it. 

thanks...
don
-- 
Don Hinton <don.hinton at vanderbilt.edu> or <hintonda at gmail.com>
Institute for Software Integrated Systems (ISIS), Vanderbilt University
tel: 615.480.5667 or 615.870.9728



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708041730.29754.don.hinton>