Fix daemonization regression
Commit af923d2d16
broke daemonization.
Revert the change but get rid of the warning message when running
in the foreground.
This commit is contained in:
parent
2394d644e8
commit
c272e3042f
2
main.go
2
main.go
@ -199,10 +199,8 @@ func main() {
|
||||
}
|
||||
|
||||
fmt.Println("Filesystem ready.")
|
||||
if !foreground {
|
||||
// Send notification to our parent
|
||||
sendUsr1()
|
||||
}
|
||||
// Wait for SIGING in the background and unmount ourselves if we get it
|
||||
// This prevents a dangling "Transport endpoint is not connected" mountpoint
|
||||
handleSigint(srv, mountpoint)
|
||||
|
@ -34,7 +34,5 @@ func sendUsr1() {
|
||||
if err != nil {
|
||||
fmt.Printf("sendUsr1: Signal: %v\n", err)
|
||||
}
|
||||
} else {
|
||||
fmt.Printf("Not running under the gocryptfs wrapper - will not daemonize\n")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user