# Pastebin aW3a45gG if (WIFSIGNALED(status)) { maybe_comma(cu); if (custr_append_printf(cu, "terminated by signal %d", WTERMSIG(status)) != 0) { err(1, "custr_append_printf"); } if (WCOREDUMP(status)) { maybe_comma(cu); if (custr_append_printf(cu, "dumped core")) { err(1, "custr_append"); } } } if (WIFSTOPPED(status)) { maybe_comma(cu); if (custr_append_printf(cu, "stopped by signal %d", WSTOPSIG(status)) != 0) { err(1, "custr_append_printf"); } }