Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

sync everywhere

  • Loading branch information...
commit 34ce9ad81de5651f860ebc9787c7f64091252d4f 1 parent 106257d
Matt Freels authored November 15, 2010

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  bin/spitball-server
2  bin/spitball-server
@@ -64,12 +64,14 @@ post '/create' do
64 64
       status 202
65 65
 
66 66
       i,o = IO.pipe
  67
+      o.sync = true
67 68
 
68 69
       # fork twice. once so we can have a pid to detach from in order to clean up,
69 70
       #             twice in order to properly redirect stdout for underlying shell commands.
70 71
       pid = fork do
71 72
         baller = open("|-")
72 73
         if baller == nil # child
  74
+          $stdout.sync = true
73 75
           begin
74 76
             ball.cache!
75 77
           rescue Object => e

0 notes on commit 34ce9ad

Please sign in to comment.
Something went wrong with that request. Please try again.