Permalink
Browse files

sync everywhere

  • Loading branch information...
1 parent 106257d commit 34ce9ad81de5651f860ebc9787c7f64091252d4f @freels freels committed Nov 16, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/spitball-server
View
@@ -64,12 +64,14 @@ post '/create' do
status 202
i,o = IO.pipe
+ o.sync = true
# fork twice. once so we can have a pid to detach from in order to clean up,
# twice in order to properly redirect stdout for underlying shell commands.
pid = fork do
baller = open("|-")
if baller == nil # child
+ $stdout.sync = true
begin
ball.cache!
rescue Object => e

0 comments on commit 34ce9ad

Please sign in to comment.