| | @@ -1160,10 +1160,9 @@ |
| 1160 | 1160 | A daemon forks, and its child calls `setsid` so that the terminal it |
| 1161 | 1161 | was started from is no longer its own: closing that terminal sends it |
| 1162 | 1162 | no `SIGHUP`, and the terminal's job control doesn't reach it. Without |
| 1163 | | -it, a program can only ignore `SIGHUP` (`Sys.ignore`), and stays in |
| 1164 | | -the terminal's process group and session, so a Ctrl-C there still |
| 1165 | | -reaches it unless it ignores `SIGINT` too, and a `SIGHUP` sent to the |
| 1166 | | -whole group by a shell that leaves is the only one it is spared. |
| 1163 | +it, a program can ignore `SIGHUP` and `SIGINT` (`Sys.ignore`), but |
| 1164 | +stays in the terminal's session and process group, so job control and |
| 1165 | +any other signal sent to the group still reach it. |
| 1167 | 1166 | |
| 1168 | 1167 | Met in rabble, whose daemon (its `PLAN.md`, from 0.2.0) is started by |
| 1169 | 1168 | the client with `fork` and must outlive the terminal (2026-10-21). |