aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/oldsemaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/oldsemaphore.c')
-rw-r--r--linuxthreads/oldsemaphore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/oldsemaphore.c b/linuxthreads/oldsemaphore.c
index 52957d9a27..b9eb20f045 100644
--- a/linuxthreads/oldsemaphore.c
+++ b/linuxthreads/oldsemaphore.c
@@ -65,7 +65,7 @@ int __old_sem_init(old_sem_t *sem, int pshared, unsigned int value)
errno = ENOSYS;
return -1;
}
- sem->sem_spinlock = 0;
+ sem->sem_spinlock = LT_SPINLOCK_INIT;
sem->sem_status = ((long)value << 1) + 1;
return 0;
}