1 /* 2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 ** Distributed under the terms of the Haiku License. 4 */ 5 6 7 #include <OS.h> 8 9 #include <signal.h> 10 #include <errno.h> 11 12 13 int 14 kill(pid_t pid, int sig) 15 { 16 status_t status = send_signal(pid, (uint)sig); 17 if (status < B_OK) { 18 errno = status; 19 return -1; 20 } 21 22 return 0; 23 } 24