//=========================================================================
// Summary  : 
// Filename : _resetProc.cc
// Author   : marsh
// Project  : 
// Revision : 1
// Created  : 2000/08/19
// Modified : 2000/08/19
//=========================================================================
// Description :
//=========================================================================

#include <stdio.h>
#include <stdlib.h>

#include "SupervisorInput.h"



main( int argc, char **argv )
{

     pid_t pid;

     SupervisorInput _input( MessageQueue::Write );

     if( argc != 2 ) {
	  printf("Usage: resetProc [pid]\n");
	  exit(0);
     } else if ( sscanf(argv[1],"%d",&pid) == 1 ) {
	  printf("Requesting reset on process %d\n", pid );
	  SupervisorInput::Command cmd;
	  cmd.pid = pid;
	  cmd.cmd = SupervisorInput::ResetProc;
	  _input.write( &cmd );
     }


     exit(0);
}
