Re: [patch] shmop.2: tfix

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

 



Hello Vishwajith,

On 5/8/21 12:07 PM, Vishwajith.K wrote:
replying to all;
Consider checking this patch - code duplication typo fix.

Sorry, I forgot to reply to you.  I applied the patch to my tree on Tuesday.

Thanks!

Alex

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

--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



[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