I'm trying to find proper documentation that describes different type of exit status I can expect to see when an IPC process is terminated or completed but I couldn't find any. The example given in the documentation says 0 will be returned if the command completed successfully and 1 will be returned if the command didn't complete.
Is there a table that will explain the exit status in details? I'm having trouble understanding my IPC process that returns 2 within the postfunc when the command is completed.
The exit status of a program is actually defined by the program itself - there's no table of exit statuses. If written in C, for example, a process can call exit(-23) if it wants to signify some particular problem.
If in csh you do:
you'd see the status it reports.