Re: [PATCH v2] sigaction.2: setitimer(2)/alarm(2) timers yield si_code=SI_TIMER too

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

 



Hi!

On Tue, Jul 09, 2024 at 10:57:54PM GMT, наб wrote:
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx>
> ---

I've applied the patch, with some tweak:

diff --git i/man/man2/sigaction.2 w/man/man2/sigaction.2
index 168c15c2f..d3da0ec08 100644
--- i/man/man2/sigaction.2
+++ w/man/man2/sigaction.2
@@ -645,8 +645,10 @@ .SS The si_code field
 .BR sigqueue (3).
 .TP
 .B SI_TIMER
-POSIX or
-.BR setitimer (2)/ alarm (2)
+POSIX, or
+.BR setitimer (2)
+or
+.BR alarm (2)
 timer expired.
 .TP
 .BR SI_MESGQ " (since Linux 2.6.6)"


This allows a future change to use groff-1.23.0's MR macro.  That change
will happen imminently, depending on when Branden finds some to send the
patch.  :-)

Have a lovely night,
Alex

P.S.:  Branden, I also remember of having asked you to send another
       patch for something else, but forgot what it was.  Maybe you
       keep track of that?  If not, I can investigate my mailbox.

>  man/man2/sigaction.2 | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man2/sigaction.2 b/man/man2/sigaction.2
> index ce5ad75..168c15c 100644
> --- a/man/man2/sigaction.2
> +++ b/man/man2/sigaction.2
> @@ -645,7 +645,9 @@ .SS The si_code field
>  .BR sigqueue (3).
>  .TP
>  .B SI_TIMER
> -POSIX timer expired.
> +POSIX or
> +.BR setitimer (2)/ alarm (2)
> +timer expired.
>  .TP
>  .BR SI_MESGQ " (since Linux 2.6.6)"
>  POSIX message queue state changed; see
> @@ -1099,6 +1101,13 @@ .SH NOTES
>  .BR signal\-safety (7)
>  for a list of the async-signal-safe functions that can be
>  safely called inside from inside a signal handler.
> +.P
> +POSIX only guarantees
> +.B SI_TIMER
> +for signals created by
> +.IR timer_create (2).
> +Implementations are free to also provide it for other types of timers.
> +The Linux behaviour matches NetBSD.
>  .\"
>  .SS Undocumented
>  Before the introduction of
> -- 
> 2.39.2



-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[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