Please sign in to comment.
- Loading branch information...
|@@ -64,12 +64,14 @@ post '/create' do|
|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|
|rescue Object => e|