[v5,15/35] exit_group.2: Use 'noreturn' in prototypes

Message ID 20210404115847.78166-16-alx.manpages@gmail.com
State New
Headers show
Series
  • Untitled series #36398
Related show

Commit Message

Noah Goldstein via Libc-alpha April 4, 2021, 11:58 a.m.
This function never returns to its caller.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

---
 man2/exit_group.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.0

Comments

Noah Goldstein via Libc-alpha April 5, 2021, 10:43 a.m. | #1
Hi ALex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> This function never returns to its caller.

> 

> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>



Patch applied.

Thanks,

Michael


> ---

>  man2/exit_group.2 | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/man2/exit_group.2 b/man2/exit_group.2

> index d26ec8c70..4fd314262 100644

> --- a/man2/exit_group.2

> +++ b/man2/exit_group.2

> @@ -29,7 +29,7 @@ exit_group \- exit all threads in a process

>  .nf

>  .B #include <linux/unistd.h>

>  .PP

> -.BI "void exit_group(int " status );

> +.BI "noreturn void exit_group(int " status );

>  .fi

>  .SH DESCRIPTION

>  This system call is equivalent to

> 



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

Patch

diff --git a/man2/exit_group.2 b/man2/exit_group.2
index d26ec8c70..4fd314262 100644
--- a/man2/exit_group.2
+++ b/man2/exit_group.2
@@ -29,7 +29,7 @@  exit_group \- exit all threads in a process
 .nf
 .B #include <linux/unistd.h>
 .PP
-.BI "void exit_group(int " status );
+.BI "noreturn void exit_group(int " status );
 .fi
 .SH DESCRIPTION
 This system call is equivalent to