We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 350ff31 commit cf83a61Copy full SHA for cf83a61
main.go
@@ -196,6 +196,9 @@ func main() {
196
kill(os.Getpid(), syscall.SIGUSR1)
197
wg.Wait()
198
defer ctx.Release()
199
+
200
+ // Signal parent process since we are taking over
201
+ _ = kill(os.Getppid(), syscall.SIGUSR1)
202
}
203
204
} else {
@@ -211,15 +214,9 @@ func main() {
211
214
flags)
212
215
213
216
if err != nil {
- if !flags.Foreground {
- kill(os.Getppid(), syscall.SIGUSR2)
- }
217
log.Fatalf("Mounting file system: %v", err)
218
// fatal also terminates itself
219
220
221
- kill(os.Getppid(), syscall.SIGUSR1)
222
223
log.Println("File system has been successfully mounted.")
224
// Let the user unmount with Ctrl-C
225
// (SIGINT). But if cache is on, catfs will
0 commit comments