From c1e28f2f2e4fe96639ff592e8bcb1b9b81b0d1c1 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Wed, 10 Sep 2025 01:25:52 +1000 Subject: [PATCH] add child related TODO items --- TODO.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 06dbe88..f3b7d7f 100644 --- a/TODO.md +++ b/TODO.md @@ -1,4 +1,8 @@ -Use /dev/ptmx, to get ptmx (master) and pts (slave) file descriptors, +- [X] Use /dev/ptmx, to get ptmx (master) and pts (slave) file descriptors, then fork and exec shfx as child (+ close ptmx), then close pts as parent. >[!NOTE] > Use `termios(3)` to enable raw mode (implemented in `cursed.c`) (for the slave or master?) + +- [ ] Implement a SIGCHLD handler instead of using `waitpid` in `killchild()`, see 2nd example in `man wait(3p)` +- [ ] Use threads to launch `killchild` to avoid blocking, then just join all the threads using atexit() +