Hacker News new | past | comments | ask | show | jobs | submit login

Not really, as fork() involves COW so nothing is really copied, and subsequent SIGKILL will only remove process structures, not data itself.



I think that opens a whole new can of worms for philosophical debates but the paradox still stands.

How would a sentient AI feel about executing `if (fork() > 0) { exit(0); }` in its own process?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: