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:
Jakob Unterwurzacher 2015-11-01 15:21:34 +01:00
parent 2394d644e8
commit c272e3042f
2 changed files with 2 additions and 6 deletions

View File

@ -199,10 +199,8 @@ func main() {
}
fmt.Println("Filesystem ready.")
if !foreground {
// Send notification to our parent
sendUsr1()
}
// 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)

View File

@ -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")
}
}