The Penguin of Evil on Nostr: Bizzare Unix semantics question. Given the parent of init is init (getppid(() of pid ...
Bizzare Unix semantics question. Given the parent of init is init (getppid(() of pid 1 is 1) is init the child of init, and if only init is running what is the correct return from wait(NULL);
Believe it or not I actually found a case it matters in my Fuzix init today and having read various docs I'm really not sure what the answer is. ECHILD or blocking ?
#unix #fuzix #retrocomputing
Published at
2024-12-10 23:43:54Event JSON
{
"id": "4584675212f48338faa1dc01c5d93defa08a2a7e7a7a1c8c5d400a56ee4ba156",
"pubkey": "ad165ea92df32f5b3d4474370bac9a3ba149430a95b2e4c72e3f54c1e7ab1765",
"created_at": 1733874234,
"kind": 1,
"tags": [
[
"t",
"unix"
],
[
"t",
"fuzix"
],
[
"t",
"retrocomputing"
],
[
"proxy",
"https://mastodon.social/users/etchedpixels/statuses/113631181839433174",
"activitypub"
]
],
"content": "Bizzare Unix semantics question. Given the parent of init is init (getppid(() of pid 1 is 1) is init the child of init, and if only init is running what is the correct return from wait(NULL);\n\nBelieve it or not I actually found a case it matters in my Fuzix init today and having read various docs I'm really not sure what the answer is. ECHILD or blocking ?\n\n#unix #fuzix #retrocomputing",
"sig": "f30a70d2fc4e5e5aef64524ea69f57a92cef801d76ef6e76d6bbfd4a24e41d6c17b1e6331a6ffde3456a102797610fe30e0666594f0120c15559fe25234cfccd"
}