A process is considered to have completed correctly in Linux if its exit status was 0.
I've seen that segmentation faults often result in an exit status of 11, though I don't know if this is simply the convention where I work (the apps that failed like that have all been internal) or a standard.
Are there standard exit codes for processes in Linux?
Best Answer
Part 1: Advanced Bash Scripting Guide
As always, the Advanced Bash Scripting Guide has great information: (This was linked in another answer, but to a non-canonical URL.)
Part 2: sysexits.h
The ABSG references
sysexits.h
.On Linux: