Re: [PATCH] execve(2): pending signals are not cleared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mike,

On Mon, Apr 13, 2009 at 3:02 AM, Mike Frysinger <vapier@xxxxxxxxxx> wrote:
> As pointed out by Christopher Head <chead@xxxxxxxxx>, the sigpending(2)
> contradicts the execve(2) page.
>
> The sigpending(2) page states:
> ... the pending signal set is preserved across an execve(2).
>
> While the execve(2) page states:
> The set of pending signals is cleared (sigpending(2)).
>
> POSIX supports the sigpending(2) statement, so the line from execve(2)
> should be dropped.  See this page:
> http://www.opengroup.org/onlinepubs/9699919799/functions/exec.html
> Where it states:
> The new process shall inherit at least the following attributes from the
> calling process image:
>  * Pending signal (see sigpending())

Yes, the statement in execve.2 is clearly wrong.  I suspect that I may
even have written it, but I don't know what I could have been thinking
of when I did so.  I applied your pattch for man-pages-3.22.

Cheers,

Michael

> Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
> ---
>  man2/execve.2 |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/man2/execve.2 b/man2/execve.2
> index 0602a56..c3a43e1 100644
> --- a/man2/execve.2
> +++ b/man2/execve.2
> @@ -118,9 +118,6 @@ glibc 2.
>  All process attributes are preserved during an
>  .BR execve (),
>  except the following:
> -.IP * 3
> -The set of pending signals is cleared
> -.RB ( sigpending (2)).
>  .IP *
>  The dispositions of any signals that are being caught are
>  reset to being ignored.
> --
> 1.6.2.2
>
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux