Files
Arquivotheca.SunOS-4.1.4/usr.lib/libsunwindow/notify/ndet_wait.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

32 lines
484 B
C

#ifndef lint
#ifdef sccs
static char sccsid[] = "@(#)ndet_wait.c 1.1 94/10/31 Copyr 1985 Sun Micro";
#endif
#endif
/*
* Copyright (c) 1985 by Sun Microsystems, Inc.
*/
/*
* Ndet_wait.c - Implement wait3 specific calls.
*/
#include <sunwindow/ntfy.h>
#include <sunwindow/ndet.h>
#include <errno.h>
extern errno;
pkg_private int
ndet_check_pid(pid)
int pid;
{
if (kill(pid, 0)) {
ntfy_set_errno((errno == ESRCH)? NOTIFY_SRCH: NOTIFY_INVAL);
return(-1);
}
return(0);
}