Hacker News new | past | comments | ask | show | jobs | submit login

Considering the tragic nature of the situation, the exit status should be nonzero.

    #include <stdio.h>
    
    int main(void) {
        printf("goodbye, world\n");
        return 1;
    }



What if he died peacefully?

    return 0;


Dying peacefully is still dying.

    return 1;


All things die, and I consider him successful.

  return 0;


"... the exit status should be nonzero. .."

true but it's from P7, "C progamming language", pure K&R.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: