Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thadoggfather

macrumors P6
Original poster
Oct 1, 2007
16,343
17,460
Handbrake is sweet encoding videos to iPhone. It's absolutely flying.

mwad94.png


What else?
 
<Joke>
#include <unistd.h>

int main()
{
while(1) {
fork();
}

return 0;
}
</Joke>
 
<Joke>
#include <unistd.h>
int main(){while(1){fork();}return 0;}
</Joke>

EDIT: umm, yeah don't try this at home. Just fresh from a hard restart. I know, I'm studying OS Internals in my final year at uni and I knew this would happen. Maybe I'm a glutton for punishment, and I wish I left top/activity monitor open before I ran it.

What's the one that would (doesn't work anymore) recurse on itself forever? You would express it in a single line and about 20 characters?

Side: why does this seg fault?
Code:
void die();

int main() {
	die();
}

void die() {die();die();}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.