/* * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. */ #include #include #include int kill(pid_t pid, int sig) { status_t status = send_signal(pid, (uint)sig); if (status < B_OK) { if (status == B_BAD_THREAD_ID) status = ESRCH; errno = status; return -1; } return 0; }