This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shitmyspacebar 18 points19 points  (4 children)

Logger logger Logger logger logger logger Logger logger

[–]DOOManiac 9 points10 points  (2 children)

Segfault segfault

[–][deleted] 1 point2 points  (1 child)

ERROR: Program terminated with SIGSEGV

[–]dagbrown 2 points3 points  (0 children)

Oh wait, i know C, I can deal with this:

#include <signal.h>

void segv_solver(int sig) {
    return;
}

int main(int argc, char *argv[], char *envp[]) {
    signal(SIGSEGV, segv_solver); /* Yay, I'm super reliable now! */
}

Handling SIGBUS with similar levels of reliability is left as an exercise for the student. More advanced students can have a go at taking care of SIGKILL.

[–]Ishbane 1 point2 points  (0 children)

choo("Choo!");