Subversion Repositories Kolibri OS

Rev

Rev 1668 | Rev 3247 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2.  
  3. int cmd_kill(char process[])
  4. {
  5.  
  6. unsigned proc;
  7. int result;
  8.  
  9. if (NULL == process)
  10.         {
  11.         printf("  kill <PID>\n\r");
  12.         return FALSE;
  13.         }
  14. else
  15.         {
  16.         proc = _atoi(process);
  17.         if ( 0 != proc )
  18.                 {
  19.                 result = kol_process_kill_pid(proc);
  20.                 if (result < 0)
  21.                         return FALSE;
  22.                 else
  23.                         return TRUE;
  24.                 }
  25.         }
  26.  
  27. }
  28.