commit | f74f0a9789894dd4bdd5144593a90cd48ec9a8c1 | [log] [tgz] |
---|---|---|
author | DAN LI <li.dan@cn.fujitsu.com> | Wed May 22 09:52:09 2013 +0800 |
committer | Wanlong Gao <gaowanlong@cn.fujitsu.com> | Wed May 22 16:55:35 2013 +0800 |
tree | 95baaf4a258d7a362b0c22853d9f2086d138714b | |
parent | 4140aa4db2866fc0a1cc9451f1284338fe971dba [diff] |
semctl01.c: Pass the correct parameter For SEM_STAT, the semid argument is not a semaphore identifier, but instead an index into the kernel’s internal array that maintains information about all semaphore sets on the system. Pass a correct index of the kernel' internal array intead of a semaphores id when testing feature SEM_STAT. Signed-off-by: DAN LI <li.dan@cn.fujitsu.com> Reviewed-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>