diff options
author | Graham Barr <gbarr@pobox.com> | 1998-05-31 11:27:33 -0500 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-31 21:52:18 +0000 |
commit | 9b89d93d5855d0edff8da7afe2143583c17c017d (patch) | |
tree | 5fc7ba7e442031db7ac975fe8d391f42447c0f06 /doio.c | |
parent | 77d41b28951bb615b428bd41b5c8f7ecea87fa50 (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)? */ |