File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,9 @@ func main() {
196196 kill (os .Getpid (), syscall .SIGUSR1 )
197197 wg .Wait ()
198198 defer ctx .Release ()
199+
200+ // Signal parent process since we are taking over
201+ _ = kill (os .Getppid (), syscall .SIGUSR1 )
199202 }
200203
201204 } else {
@@ -211,15 +214,9 @@ func main() {
211214 flags )
212215
213216 if err != nil {
214- if ! flags .Foreground {
215- kill (os .Getppid (), syscall .SIGUSR2 )
216- }
217217 log .Fatalf ("Mounting file system: %v" , err )
218218 // fatal also terminates itself
219219 } else {
220- if ! flags .Foreground {
221- kill (os .Getppid (), syscall .SIGUSR1 )
222- }
223220 log .Println ("File system has been successfully mounted." )
224221 // Let the user unmount with Ctrl-C
225222 // (SIGINT). But if cache is on, catfs will
You can’t perform that action at this time.
0 commit comments