linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] siginterrupt.3: ATTRIBUTES: Note function that is not thread-safe
@ 2014-06-11  7:02 Peng Haitao
       [not found] ` <1402470146-16506-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Peng Haitao @ 2014-06-11  7:02 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: carlos-v2tUB8YBRSi3e3T8WW9gsA, aoliva-H+wXaHxf7aLQT0dZR+AlfA,
	linux-man-u79uwXL29TY76Z2rM5mHXA

The function siginterrupt() is not thread safe.

Signed-off-by: Peng Haitao <penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 man3/siginterrupt.3 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/man3/siginterrupt.3 b/man3/siginterrupt.3
index bdf8b21..8365348 100644
--- a/man3/siginterrupt.3
+++ b/man3/siginterrupt.3
@@ -84,6 +84,12 @@ set to indicate the cause of the error.
 .TP
 .B EINVAL
 The specified signal number is invalid.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR siginterrupt ()
+function uses a global variable that is not protected,
+so it is not thread-safe.
 .SH CONFORMING TO
 4.3BSD, POSIX.1-2001.
 POSIX.1-2008 marks
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] siginterrupt.3: ATTRIBUTES: Note function that is not thread-safe
       [not found] ` <1402470146-16506-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2014-06-11  8:41   ` Michael Kerrisk (man-pages)
  2014-06-11  8:41   ` Michael Kerrisk (man-pages)
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-11  8:41 UTC (permalink / raw)
  To: Peng Haitao
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	carlos-v2tUB8YBRSi3e3T8WW9gsA, aoliva-H+wXaHxf7aLQT0dZR+AlfA,
	linux-man-u79uwXL29TY76Z2rM5mHXA

Thanks, Haitao. Applied.

Cheers,

Michael


On 06/11/2014 09:02 AM, Peng Haitao wrote:
> The function siginterrupt() is not thread safe.
> 
> Signed-off-by: Peng Haitao <penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/siginterrupt.3 | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/man3/siginterrupt.3 b/man3/siginterrupt.3
> index bdf8b21..8365348 100644
> --- a/man3/siginterrupt.3
> +++ b/man3/siginterrupt.3
> @@ -84,6 +84,12 @@ set to indicate the cause of the error.
>  .TP
>  .B EINVAL
>  The specified signal number is invalid.
> +.SH ATTRIBUTES
> +.SS Multithreading (see pthreads(7))
> +The
> +.BR siginterrupt ()
> +function uses a global variable that is not protected,
> +so it is not thread-safe.
>  .SH CONFORMING TO
>  4.3BSD, POSIX.1-2001.
>  POSIX.1-2008 marks
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] siginterrupt.3: ATTRIBUTES: Note function that is not thread-safe
       [not found] ` <1402470146-16506-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  2014-06-11  8:41   ` Michael Kerrisk (man-pages)
@ 2014-06-11  8:41   ` Michael Kerrisk (man-pages)
       [not found]     ` <53981650.5020900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-11  8:41 UTC (permalink / raw)
  To: Peng Haitao
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	carlos-v2tUB8YBRSi3e3T8WW9gsA, aoliva-H+wXaHxf7aLQT0dZR+AlfA,
	linux-man-u79uwXL29TY76Z2rM5mHXA

Thanks, Haitao. Applied.

May I suggest that you CC Qian Lei on all of your patches, at least 
for as long as you are both working on this topic?

Cheers,

Michael


On 06/11/2014 09:02 AM, Peng Haitao wrote:
> The function siginterrupt() is not thread safe.
> 
> Signed-off-by: Peng Haitao <penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> ---
>  man3/siginterrupt.3 | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/man3/siginterrupt.3 b/man3/siginterrupt.3
> index bdf8b21..8365348 100644
> --- a/man3/siginterrupt.3
> +++ b/man3/siginterrupt.3
> @@ -84,6 +84,12 @@ set to indicate the cause of the error.
>  .TP
>  .B EINVAL
>  The specified signal number is invalid.
> +.SH ATTRIBUTES
> +.SS Multithreading (see pthreads(7))
> +The
> +.BR siginterrupt ()
> +function uses a global variable that is not protected,
> +so it is not thread-safe.
>  .SH CONFORMING TO
>  4.3BSD, POSIX.1-2001.
>  POSIX.1-2008 marks
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] siginterrupt.3: ATTRIBUTES: Note function that is not thread-safe
       [not found]     ` <53981650.5020900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-06-11  9:09       ` Peng Haitao
       [not found]         ` <53981CB2.60509-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Peng Haitao @ 2014-06-11  9:09 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages)
  Cc: carlos-v2tUB8YBRSi3e3T8WW9gsA, aoliva-H+wXaHxf7aLQT0dZR+AlfA,
	linux-man-u79uwXL29TY76Z2rM5mHXA


On 06/11/2014 04:41 PM, Michael Kerrisk (man-pages) wrote:
> Thanks, Haitao. Applied.
> 
> May I suggest that you CC Qian Lei on all of your patches, at least 
> for as long as you are both working on this topic?
> 

OK,I will CC Qian Lei.
Thanks.

ps: Qian Lei has subscribed to the mailing list of the man-pages project,
so I did not CC him before.


-- 
Best Regards,
Peng

> Cheers,
> 
> Michael
> 
> 
> On 06/11/2014 09:02 AM, Peng Haitao wrote:
>> The function siginterrupt() is not thread safe.
>>
>> Signed-off-by: Peng Haitao <penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
>> ---
>>  man3/siginterrupt.3 | 6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>> diff --git a/man3/siginterrupt.3 b/man3/siginterrupt.3
>> index bdf8b21..8365348 100644
>> --- a/man3/siginterrupt.3
>> +++ b/man3/siginterrupt.3
>> @@ -84,6 +84,12 @@ set to indicate the cause of the error.
>>  .TP
>>  .B EINVAL
>>  The specified signal number is invalid.
>> +.SH ATTRIBUTES
>> +.SS Multithreading (see pthreads(7))
>> +The
>> +.BR siginterrupt ()
>> +function uses a global variable that is not protected,
>> +so it is not thread-safe.
>>  .SH CONFORMING TO
>>  4.3BSD, POSIX.1-2001.
>>  POSIX.1-2008 marks
>>
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] siginterrupt.3: ATTRIBUTES: Note function that is not thread-safe
       [not found]         ` <53981CB2.60509-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2014-06-11  9:25           ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-11  9:25 UTC (permalink / raw)
  To: Peng Haitao
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	carlos-v2tUB8YBRSi3e3T8WW9gsA, aoliva-H+wXaHxf7aLQT0dZR+AlfA,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 06/11/2014 11:09 AM, Peng Haitao wrote:
> 
> On 06/11/2014 04:41 PM, Michael Kerrisk (man-pages) wrote:
>> Thanks, Haitao. Applied.
>>
>> May I suggest that you CC Qian Lei on all of your patches, at least 
>> for as long as you are both working on this topic?
>>
> 
> OK,I will CC Qian Lei.
> Thanks.

Thanks.

> ps: Qian Lei has subscribed to the mailing list of the man-pages project,
> so I did not CC him before.

Understood. But when you CC someone, that also advertises on the list that
the mail was sent to them as well.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-11  9:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11  7:02 [PATCH] siginterrupt.3: ATTRIBUTES: Note function that is not thread-safe Peng Haitao
     [not found] ` <1402470146-16506-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2014-06-11  8:41   ` Michael Kerrisk (man-pages)
2014-06-11  8:41   ` Michael Kerrisk (man-pages)
     [not found]     ` <53981650.5020900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-11  9:09       ` Peng Haitao
     [not found]         ` <53981CB2.60509-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2014-06-11  9:25           ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).