Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2012 16:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# crasher
#include <stdlib.h>
while(1) fork();
int main with no return statement...
# linux
echo c > /proc/sysrq-trigger
man bash
It's too big and too slow.
man 5 compat
Any interpretation will surprise someone.
GTK messed up:
echo "\U0001f4a9"
history of ascii
cat tmp/gdal/configure
System 7, AIX
# os x
sudo dtrace -w -n "BEGIN{ panic();}"
#include <unistd.h>
#include <util.h>
int main() {
for (int i = 0; i < 10000; ++i) {
printf("Allocating pty %d\n", i + 1);
int master, slave;
pid_t p = forkpty(&master, NULL, NULL, NULL);
if (p < 0) {
perror("forkpty failed");
return 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment