Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Mar 6, 2024
1 parent b17cde8 commit b427b3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fileserver/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ func main() {
log.Fatalf("Failed to open or create error log file: %v", err)
}
syscall.Dup3(int(fp.Fd()), int(os.Stderr.Fd()), 0)
// We need to close the old fp, because it has beed duped.
fp.Close()
}

Expand Down

0 comments on commit b427b3f

Please sign in to comment.