On Thu, Nov 12, 2020 at 09:22:45AM -0600, Derek Martin wrote:
> One point that is not clear to me is, the sigaction manpage explicitly
> calls out execve, rather than the whole exec family.  It seems to
> suggest that execvp (which is what mutt is using to spawn the sendmail
> process) doesn't do that.  It could be a case of the man page being
> incorrectly overly specific, or just out of date... 

sigaction and execve are system calls in section 2 of the manual,
whereas execvp et al are in section 3 and are library functions - in
fact the man page says in the first paragraph that they are front-ends
for execve(2).

You knew that of course, but I think the point is partly that the
man pages in section 2 don't really care what your user-space library
does[*] and partly that it *is* documented albeit not all in the one
place.

imc

[*] That's not true obviously, because sigaction(2) also talks about
sigqueue(3) and raise(3).  But maybe the difference there is that these
are POSIX functions implemented by non-POSIX syscalls.  Or I could just
be talking rubbish.

Reply via email to