Skip to content

Commit

Permalink
Add 100ms timeout before making the first stat-call on unix systems.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <thomas@datawire.io>
  • Loading branch information
thallgren committed Feb 3, 2024
1 parent 9ea3c0f commit d53a256
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fs/fuse_started_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
)

func (fh *FuseHost) detectFuseStarted(ctx context.Context, started chan error) {
time.Sleep(100 * time.Millisecond)
var st unix.Stat_t
if err := unix.Stat(fh.mountPoint, &st); err != nil {
select {
Expand Down

0 comments on commit d53a256

Please sign in to comment.