function terminate_process

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