lkml.org 
[lkml]   [2016]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Don't set sempid in semctl syscall.
Date
From: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>

As described in bug #112271 (bugzilla.kernel.org/show_bug.cgi?id=112271)
don't set sempid in semctl syscall. Set sempid only when semop is called.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
---
ipc/sem.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/ipc/sem.c b/ipc/sem.c
index e626965..4a99220 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1341,7 +1341,6 @@ static int semctl_setval(struct ipc_namespace *ns, int semid, int semnum,
un->semadj[semnum] = 0;

curr->semval = val;
- curr->sempid = task_tgid_vnr(current);
sma->sem_ctime = get_seconds();
/* maybe some queued-up processes were waiting for this */
do_smart_update(sma, NULL, 0, 0, &tasks);
--
2.5.0
\
 
 \ /
  Last update: 2016-02-26 14:01    [W:0.179 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site