News for hackers. Stuff that matters.
Re:fork() can fail by jacquesm on Thursday August 21, 2014 @06:47AM (#8206711)
Good luck writing a macro in C to express language functionality for which you don't have the primitives. It's not exactly lisp. Think of C macros as a way to save you some typing and lisp macros as a way to extend the language.
Re:fork() can fail by tedunangst on Thursday August 21, 2014 @10:08AM (#8207381)
setjmp and longjmp are sufficient building blocks for this.
Re:fork() can fail by xxs on Thursday August 21, 2014 @08:19AM (#8206955)
you can definitely save the chdir and restore it macro.