News for hackers. Stuff that matters.
Re:In C, how do you know if the dynamic allocation succeeded? by naniwaduni on Saturday November 06, 2021 @01:22AM (#29127739)
We do have posix_spawn &c., which are expressly designed to be implementable even in situations where fork doesn't make sense.
Re:In C, how do you know if the dynamic allocation succeeded? by tsimionescu on Saturday November 06, 2021 @01:50AM (#29127857)
Interesting, I'd never learned about that. If I understand correctly, this actually used to be implemented as a fork()+exec() on many systems, though. It's actually vfork() that addressed the problem and allowed an actually useful implementation of posix_spawn in Linux at least.