main: fix comments that reference "-f"
This commit is contained in:
parent
b527e205e2
commit
f4c367381e
@ -18,7 +18,7 @@ func exitOnUsr1() {
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
// forkChild - execute ourselves once again, this time with the "-f" flag, and
|
||||
// forkChild - execute ourselves once again, this time with the "-fg" flag, and
|
||||
// wait for SIGUSR1 or child exit.
|
||||
// This is a workaround for the missing true fork function in Go.
|
||||
func forkChild() int {
|
||||
|
2
main.go
2
main.go
@ -124,7 +124,7 @@ func main() {
|
||||
// Parse all command-line options (i.e. arguments starting with "-")
|
||||
// into "args". Path arguments are parsed below.
|
||||
args := parseCliOpts()
|
||||
// Fork a child into the background if "-f" is not set AND we are mounting
|
||||
// Fork a child into the background if "-fg" is not set AND we are mounting
|
||||
// a filesystem. The child will do all the work.
|
||||
if !args.fg && flagSet.NArg() == 2 {
|
||||
ret := forkChild()
|
||||
|
Loading…
Reference in New Issue
Block a user