Skip to content

Commit

Permalink
Avoid too many error logs - "os: process already finished" (#5278)
Browse files Browse the repository at this point in the history
Signed-off-by: Changxin Miao <[email protected]>
  • Loading branch information
polyrabbit authored Nov 6, 2024
1 parent 679adfe commit f7e0959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mount_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ func launchMount(mp string, conf *vfs.Config) error {
return
}
logger.Infof("received signal %s, propagating to child process %d...", sig.String(), mountPid)
if err := cmd.Process.Signal(sig); err != nil {
if err := cmd.Process.Signal(sig); err != nil && !errors.Is(err, os.ErrProcessDone) {
logger.Errorf("send signal %s to %d: %s", sig.String(), mountPid, err)
}
}
Expand Down

0 comments on commit f7e0959

Please sign in to comment.