title: Detecting meaning of system() function's return value in Linux
body: <p>When I execute a command using <code>system(COMMAND)</code> function in <code>C++</code> code running on Linux,
  the return values of calls of <code>system(COMMAND)</code> are not same from each other.
  Do we have any ways to detect <strong>segmentation fault</strong> or <strong>abnormal termination</strong> by using return value of <code>system(COMMAND)</code> function?</p>
  
  <p>For example, when I got segmentation fault after executing a command by using <code>system</code> function, I confirmed the return value of that function was 35584. However, I could not know what that return value means, and I am not sure all possible segmentation faults return 35584.
  Is there a way to detect all possible values of return values when I encounter segmentation fault or abnormal termination?</p>