function terminate_process

[edit]
static void terminate_process(int status, const char *mesg, int mlen)