Small fix to example code

This commit is contained in:
Michael Kerrisk 2008-04-12 16:27:05 +00:00
parent 81307e98f7
commit 5a776a3bef
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ and then increment the semaphore value by one.
sops[0].sem_flg = 0;
sops[1].sem_num = 0; /* Operate on semaphore 0 */
sops[1].sem_op = 0; /* Increment value by one */
sops[1].sem_op = 1; /* Increment value by one */
sops[1].sem_flg = 0;
if (semop(semid, &sop, 2) == \-1) {