How to kill yourself in various languages! 05-27-2015, 01:24 AM
#1
How to kill yourself in various languages!
So since dysfunctional requires us to write 15 posts in the coding section to not get kicked I'm going to go ahead and write a easy to copy and paste tutorial to kill yourself.
Python
Code:
#!/usr/bin/python
import os as loli
nerds = loli.getpid()
loli.kill(nerds,9);C
Code:
#include <stdio.h>
int main() {
kill(getpid(),9);
return 0;
}PHP
Code:
<?php
posix_kill(getmypid(),9);
?>Bash/commandline
Code:
poop@loli~$ kill -9 $$Now, you might wonder what this reoccurring 9 is? Well, let good old kizaru tell you.
It means we are killing the processes BRUTALLY via the POSIX signal 9 which means SIGKILL.
http://en.wikipedia.org/wiki/Unix_signal#POSIX_signals
We as the self independent lolis we are we are killing all the nerds by getting their id (getpid() or getmypid() )
Thank you, if you want more tutorials like this post below!

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)











![[Image: e91c9a58e5d941a600f8b4bda62894e9.298x125x1.png]](http://images.rapgenius.com/e91c9a58e5d941a600f8b4bda62894e9.298x125x1.png)












