diff options
Diffstat (limited to 'bin/posix-mq-rb')
-rwxr-xr-x | bin/posix-mq-rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/posix-mq-rb b/bin/posix-mq-rb index 288b4e3..8c77aea 100755 --- a/bin/posix-mq-rb +++ b/bin/posix-mq-rb @@ -101,14 +101,14 @@ begin exit when :receive buf, prio = mq.receive("", timeout) - $stderr.syswrite("priority=#{prio}\n") if priority - $stdout.syswrite(buf) + $stderr.write("priority=#{prio}\n") if priority + $stdout.write(buf) when :send ARGV << $stdin.read if ARGV.empty? ARGV.each { |msg| mq.send(msg, priority, timeout) } when :attr mq_attr = mq.attr - $stdout.syswrite( + $stdout.write( "flags=#{mq_attr.flags}\n" \ "maxmsg=#{mq_attr.maxmsg}\n" \ "msgsize=#{mq_attr.msgsize}\n" \ |