Lines Matching refs:ep
42 terminate(register EXEC *ep) in terminate() argument
46 if (ep->pid <= 0) in terminate()
49 if (ep->flags & EXF_KILLED) in terminate()
51 ep->flags |= EXF_KILLED; in terminate()
60 if (kill(-ep->pid, SIGTERM) == -1 && errno == ESRCH) { in terminate()
61 ep->pid = -99; in terminate()
62 ep->status = SIGTERM; in terminate()
63 ep->Errno = 0; in terminate()
81 if ((kill(-ep->pid, 0) == -1) && (errno == ESRCH)) { in terminate()
82 ep->pid = -99; in terminate()
83 ep->status = SIGTERM; in terminate()
84 ep->Errno = 0; in terminate()
95 if ((kill(-ep->pid, SIGKILL) == -1) && (errno == ESRCH)) { in terminate()
96 ep->pid = -99; in terminate()
97 ep->status = SIGTERM; in terminate()
98 ep->Errno = 0; in terminate()
108 ep->pid = -99; in terminate()
109 ep->status = SIGTERM; in terminate()
110 ep->Errno = 0; in terminate()