raz / commit 7e0585e9

commit
7e0585e9d28c2071e9061990e830968876391d98
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
f9f2df99
PROPOSALS.md: setsid's case said right: Sys.ignore exists

patch · log

1 file changed, +4 -3

PROPOSALS.md modified +4 -3

@@ -1160,9 +1160,10 @@
11601160 A daemon forks, and its child calls `setsid` so that the terminal it
11611161 was started from is no longer its own: closing that terminal sends it
11621162 no `SIGHUP`, and the terminal's job control doesn't reach it. Without
1163-it, a program can only ignore `SIGHUP`, which `Sys.handle` can't do
1164-(it notes a signal; it doesn't ignore one), and stays in the
1165-terminal's process group, so a Ctrl-C there still reaches it.
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.
11661167
11671168 Met in rabble, whose daemon (its `PLAN.md`, from 0.2.0) is started by
11681169 the client with `fork` and must outlive the terminal (2026-10-21).