Last active
December 14, 2015 11:08
-
-
Save jhawthorn/5076820 to your computer and use it in GitHub Desktop.
Hey sexy mama, Wanna kill all humans?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* humans.c | |
* $ gcc -o humans humans.c | |
* $ ./humans & | |
* $ killall humans | |
*/ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <signal.h> | |
void ex_program(int sig) { | |
system("mplayer humans.mp3"); | |
} | |
int main(void) { | |
(void) signal(SIGTERM, ex_program); | |
while(1) | |
sleep(1000); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment