#include <sys/proc_msg.h>
#include <sys/kernel.h>
#include <unistd.h>

void exit( status )
int status;
{
	struct _proc_terminate msg;

	msg.type = _PROC_TERMINATE;
	msg.signum = 0;
	msg.xstatus = (long)status;
	Send( PROC_PID, &msg, &msg, sizeof(msg), 0 );
	/* The send will NOT return */
}
