Julia Evans on Nostr: got a lot of great answers to "how is the shell involved in handling Ctrl+C" to the ...
got a lot of great answers to "how is the shell involved in handling Ctrl+C" to the effect of one of:
- "the shell is responsible for sending a SIGINT"
- "the shell takes input from the terminal emulator and relays it to the program"
- "it must be handled by the layer above the program, which is the shell"
and while none of those is true, they feel like they totally _could_ be true in a different world. It feels hard to explain why it might be useful to have a more "accurate" mental model
Published at
2025-03-19 18:12:05Event JSON
{
"id": "95be3d8d89de13b494a43182f3bfe750e8a1899d44c5a98b31d20fed5e1cf48a",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1742407925,
"kind": 1,
"tags": [
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/114190445799433743",
"activitypub"
]
],
"content": "got a lot of great answers to \"how is the shell involved in handling Ctrl+C\" to the effect of one of:\n\n- \"the shell is responsible for sending a SIGINT\"\n- \"the shell takes input from the terminal emulator and relays it to the program\"\n- \"it must be handled by the layer above the program, which is the shell\"\n\nand while none of those is true, they feel like they totally _could_ be true in a different world. It feels hard to explain why it might be useful to have a more \"accurate\" mental model",
"sig": "0f7ad613b6b9ffa91bf7b8dbc3e83d9e719c8f4be86a5d271d269648ff6ced9ceb29645973bb9de6e97b87db0df4ef4d29b87a0c9a00d5bf51e9b9cd56f8c900"
}