lib/process.c
/* Sends signal 'signr' to process 'p'.  Returns 0 if successful, otherwise a
 * positive errno value. */
Sends signal 'signr' to process 'p'.  Returns 0 if successful, otherwise a
positive errno value.
Sends signal ' signr ' to process ' p ' . Returns 0 if successful otherwise a positive errno value .
int
process_kill(const struct process *p, int signr)
{
#ifndef _WIN32
    return (p->exited ? ESRCH
            : !kill(p->pid, signr) ? 0
            : errno);
#else
    return ENOSYS;
#endif
}
int process_kill ( const struct process * p , int signr ) { #ifndef _WIN32 return ( p -> exited ? ESRCH : ! kill ( p -> pid , signr ) ? 0 : errno ) ; #else return ENOSYS ; #endif }
Sends signal 'signr' to process 'p'.
Sends signal ' signr ' to process ' p ' .