summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1998-05-31 11:27:33 -0500
committerGurusamy Sarathy <gsar@cpan.org>1998-05-31 21:52:18 +0000
commit9b89d93d5855d0edff8da7afe2143583c17c017d (patch)
tree5fc7ba7e442031db7ac975fe8d391f42447c0f06 /doio.c
parent77d41b28951bb615b428bd41b5c8f7ecea87fa50 (diff)
downloadperl-9b89d93d5855d0edff8da7afe2143583c17c017d.tar.gz
[win32] semctl tweak
Message-Id: <199805312127.QAA06750@gbarr.connect.net> Subject: Not OK: perl 5.00466 on i586-linux-thread 2.0.31 p4raw-id: //depot/win32/perl@1068
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/doio.c b/doio.c
index 365c72f017..9d841a195c 100644
--- a/doio.c
+++ b/doio.c
@@ -1435,6 +1435,8 @@ do_ipcctl(I32 optype, SV **mark, SV **sp)
semun.buf = &semds;
getinfo = (cmd == GETALL);
+ if (Semctl(id, 0, IPC_STAT, semun) == -1)
+ return -1;
infosize = semds.sem_nsems * sizeof(short);
/* "short" is technically wrong but much more portable
than guessing about u_?short(_t)? */