projects
/
riece
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9efa9f
)
Fixed.
author
Daiki Ueno
<ueno@unixuser.org>
Tue, 22 Mar 2005 10:05:03 +0000
(10:05 +0000)
committer
Daiki Ueno
<ueno@unixuser.org>
Tue, 22 Mar 2005 10:05:03 +0000
(10:05 +0000)
lisp/rubyserv.rb
patch
|
blob
|
history
diff --git
a/lisp/rubyserv.rb
b/lisp/rubyserv.rb
index
032adfc
..
7c894fc
100644
(file)
--- a/
lisp/rubyserv.rb
+++ b/
lisp/rubyserv.rb
@@
-1,4
+1,5
@@
-# A simple IPC server for executing arbitrary Ruby program.
+# A simple IPC server executing arbitrary Ruby program.
+
# The protocol is based on Assuan protocol of GnuPG.
# http://www.gnupg.org/(en)/related_software/libassuan/index.html
@@
-59,12
+60,11
@@
class RubyServ
def dispatch_eval(c, r)
r = deq_data if r.empty?
- p r
open('|-') do |f|
if f
d = f.read
Process.wait
- send_data(d)
+ send_data(d)
if d
if $?.success?
puts("OK\r\n")
else