Sinisterly
How to kill yourself in various languages! - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: How to kill yourself in various languages! (/Thread-How-to-kill-yourself-in-various-languages)



How to kill yourself in various languages! - Kizaru - 05-27-2015

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!


RE: How to kill yourself in various languages! - Losi - 05-27-2015

Nice, quality roast. Btw why did you change your name Yagmi?


RE: How to kill yourself in various languages! - Kizaru - 05-27-2015

(05-27-2015, 04:17 AM)Losi Wrote: Nice, quality roast. Btw why did you change your name Yagmi?

Cause I can, fuck you.


RE: How to kill yourself in various languages! - Inori - 05-27-2015

(05-27-2015, 06:27 AM)Kizaru Wrote: Cause I can, fuck you.

Valid.

Believe it or not, I found this pretty useful.


RE: How to kill yourself in various languages! - Losi - 05-27-2015

(05-27-2015, 06:27 AM)Kizaru Wrote: Cause I can, fuck you.

K then.

[Image: 8eql8.png]


RE: How to kill yourself in various languages! - Eclipse - 05-27-2015

You need help.25char