summaryrefslogtreecommitdiff
path: root/eg/sysvipc/ipcsem
diff options
context:
space:
mode:
Diffstat (limited to 'eg/sysvipc/ipcsem')
-rw-r--r--eg/sysvipc/ipcsem4
1 files changed, 2 insertions, 2 deletions
diff --git a/eg/sysvipc/ipcsem b/eg/sysvipc/ipcsem
index 4d871b901a..e0dc551bc5 100644
--- a/eg/sysvipc/ipcsem
+++ b/eg/sysvipc/ipcsem
@@ -18,7 +18,7 @@ print "semaphore id: $id\n";
if ($signal) {
while (<STDIN>) {
print "Signalling\n";
- unless (semop($id, 0, pack("sss", 0, 1, 0))) {
+ unless (semop($id, pack("sss", 0, 1, 0))) {
die "Can't signal semaphore: $!\n";
}
}
@@ -26,7 +26,7 @@ if ($signal) {
else {
$SIG{'INT'} = $SIG{'QUIT'} = "leave";
for (;;) {
- unless (semop($id, 0, pack("sss", 0, -1, 0))) {
+ unless (semop($id, pack("sss", 0, -1, 0))) {
die "Can't wait for semaphore: $!\n";
}
print "Unblocked\n";