Collect accounting information into pacct_struct
void acct_collect(long exitcode, int group_dead);
exitcode
task exit code
group_dead
not 0, if this thread is the last one in the process.