Skip to content

Commit aac2e8b

Browse files
Copilotprobonopd
andcommitted
Close keepalive pipe before execv to prevent FUSE daemon orphan
Co-authored-by: probonopd <[email protected]>
1 parent 7a71e24 commit aac2e8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/runtime.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,9 @@ int main(int argc, char* argv[]) {
18461846
strcpy(filename, mount_dir);
18471847
strcat(filename, "/AppRun");
18481848

1849+
/* Close the keepalive pipe before exec to ensure FUSE daemon terminates when we exit */
1850+
close(keepalive_pipe[0]);
1851+
18491852
/* TODO: Find a way to get the exit status and/or output of this */
18501853
execv(filename, real_argv);
18511854
/* Error if we continue here */

0 commit comments

Comments
 (0)