Re: [patch] shmop.2: tfix

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

 



replying to all;
Consider checking this patch - code duplication typo fix.

Regards,
Vishwa

On Tue, May 4, 2021 at 7:22 PM Vishwajith.K <vishuvikas1996@xxxxxxxxx> wrote:
>
> From 8f678998296fab3d68b3637f5334d8ded37f3c99 Mon Sep 17 00:00:00 2001
> From: Vishwajith K <vishuvikas1996@xxxxxxxxx>
> Date: Tue, 4 May 2021 10:09:11 -0400
> Subject: [PATCH] tfix: shmop.2 example code
>
> ---
>  man2/shmop.2 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/man2/shmop.2 b/man2/shmop.2
> index 3a6c908ee..c7e66af0e 100644
> --- a/man2/shmop.2
> +++ b/man2/shmop.2
> @@ -387,8 +387,8 @@ main(int argc, char *argv[])
>          errExit("shmget");
>
>      semid = semget(IPC_PRIVATE, 1, IPC_CREAT | 0600);
> -    if (shmid == \-1)
> -        errExit("shmget");
> +    if (semid == \-1)
> +        errExit("semget");
>
>      /* Attach shared memory into our address space. */
>
> --
> 2.27.0



[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