[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]

 



Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx>
---
 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

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