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() {
196
196
kill (os .Getpid (), syscall .SIGUSR1 )
197
197
wg .Wait ()
198
198
defer ctx .Release ()
199
+
200
+ // Signal parent process since we are taking over
201
+ _ = kill (os .Getppid (), syscall .SIGUSR1 )
199
202
}
200
203
201
204
} else {
@@ -211,15 +214,9 @@ func main() {
211
214
flags )
212
215
213
216
if err != nil {
214
- if ! flags .Foreground {
215
- kill (os .Getppid (), syscall .SIGUSR2 )
216
- }
217
217
log .Fatalf ("Mounting file system: %v" , err )
218
218
// fatal also terminates itself
219
219
} else {
220
- if ! flags .Foreground {
221
- kill (os .Getppid (), syscall .SIGUSR1 )
222
- }
223
220
log .Println ("File system has been successfully mounted." )
224
221
// Let the user unmount with Ctrl-C
225
222
// (SIGINT). But if cache is on, catfs will
You can’t perform that action at this time.
0 commit comments