- commit
- e28fae1
- parent
- 854932f
- author
- Eric Bower
- date
- 2025-11-26 20:01:06 -0500 EST
fix: reap the pty child process and prevent zombies
1 files changed,
+2,
-0
+2,
-0
1@@ -354,6 +354,8 @@ fn attach(daemon: *Daemon) !void {
2 };
3 }
4 try daemonLoop(daemon, server_sock_fd, pty_fd);
5+ // Reap PTY child to prevent zombie
6+ _ = posix.waitpid(daemon.pid, 0);
7 return;
8 }
9 posix.close(server_sock_fd);