Messages in this thread Patch in this message | | | From | PrasannaKumar Muralidharan <> | Subject | [PATCH] Don't set sempid in semctl syscall. | Date | Fri, 26 Feb 2016 17:51:38 +0530 |
| |
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
| |