{"items": [{"author": "Todd", "source_link": "https://plus.google.com/112947709146257842066", "anchor": "gp-1354854867706", "service": "gp", "text": "That's crazy.", "timestamp": 1354854867}, {"author": "Alex", "source_link": "https://www.facebook.com/jefftk/posts/521028414594558?comment_id=521041407926592", "anchor": "fb-521041407926592", "service": "fb", "text": "exit() returns zero times.", "timestamp": "1354855282"}, {"author": "Alex", "source_link": "https://www.facebook.com/jefftk/posts/521028414594558?comment_id=521043504593049", "anchor": "fb-521043504593049", "service": "fb", "text": "You could also longjmp() to setjmp() an arbitrary number of times.", "timestamp": "1354855907"}, {"author": "Dustin", "source_link": "https://www.facebook.com/jefftk/posts/521028414594558?comment_id=521052481258818", "anchor": "fb-521052481258818", "service": "fb", "text": "And what about yield for languages that support co-routines?", "timestamp": "1354858234"}, {"author": "Gordon", "source_link": "https://www.facebook.com/jefftk/posts/521028414594558?comment_id=521061247924608", "anchor": "fb-521061247924608", "service": "fb", "text": "Ouch!<br><br>Fascinating. I was never aware of the fork function. When might a gentleman actually need to call it?", "timestamp": "1354860328"}, {"author": "Jeff&nbsp;Kaufman", "source_link": "https://www.facebook.com/jefftk/posts/521028414594558?comment_id=521185197912213", "anchor": "fb-521185197912213", "service": "fb", "text": "@Gordon: fork() is the first step of the traditional way to start a program on unix.  Instead of calling some sort of startprogram(path_to_program, arguments) you would call fork() and then on one side of the fork call execvp(path_to_program, arguments).  The second call throws away all the details that were just copied from the original process when you cloned it, and replaces them with the program you want to run.  Which would be very inefficient, except that most unixes will use \"copy-on-write\" so that the cloning is done lazily, as needed.", "timestamp": "1354888156"}, {"author": "Chris", "source_link": "https://www.facebook.com/jefftk/posts/521028414594558?comment_id=521293204568079", "anchor": "fb-521293204568079", "service": "fb", "text": "I remember playing with this stuff, but I am very impressed that you shut down the entire lab.", "timestamp": "1354906706"}, {"author": "Chris", "source_link": "https://www.facebook.com/jefftk/posts/521028414594558?comment_id=521293404568059", "anchor": "fb-521293404568059", "service": "fb", "text": "Another fun one to play with is int main() {while (!fork()); return 0;}  Doesn't kill your machine, but difficult to kill without using killall.", "timestamp": "1354906750"}]}