Skip to content

Commit

Permalink
bootstrap.fan: add sleep to give time for Process output to flush
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Giannini authored and Matthew Giannini committed Jul 1, 2024
1 parent df22ed5 commit 88bce30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adm/bootstrap.fan
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// 18 Dec 09 Brian Frank Creation
//

using concurrent
using util

**
Expand Down Expand Up @@ -240,6 +241,9 @@ class Bootstrap : AbstractMain
buf := Buf()
p := Process(cmd) { out = buf.out }
r := p.run.join
// note: i have observed on ubuntu that we need this sleep to
// give time for the output to flush to the buf
Actor.sleep(500ms)
return r != 0 ? "" : buf.flip.readAllLines.first
}

Expand Down

0 comments on commit 88bce30

Please sign in to comment.