aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygserver/sysv_sem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygserver/sysv_sem.cc')
-rw-r--r--winsup/cygserver/sysv_sem.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygserver/sysv_sem.cc b/winsup/cygserver/sysv_sem.cc
index e7ba48b..349322c 100644
--- a/winsup/cygserver/sysv_sem.cc
+++ b/winsup/cygserver/sysv_sem.cc
@@ -1177,7 +1177,8 @@ semop(struct thread *td, struct semop_args *uap)
*/
if (error != 0) {
#ifdef __CYGWIN__
- if (error != EIDRM)
+ if (error == EIDRM)
+ goto done2;
#endif /* __CYGWIN__ */
error = EINTR;
goto done2;