#ifdef WIN32 /* signal sending */ int
pgkill(int pid, int sig)
{ char pipename[128];
BYTE sigData = sig;
BYTE sigRet = 0;
DWORD bytes;
/* we allow signal 0 here, but it will be ignored in pg_queue_signal */ if (sig >= PG_SIGNAL_COUNT || sig < 0)
{
errno = EINVAL; return -1;
} if (pid <= 0)
{ /* No support for process groups */
errno = EINVAL; return -1;
}
/* special case for SIGKILL: just ask the system to terminate the target */ if (sig == SIGKILL)
{
HANDLE prochandle;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.