KI_PID

Test if a process is running

Synopsis:
CALL KI_PID pid TO status
status = 'ki_pid( pid )
ArgumentEnumerationPurpose
pidProcess ID
statusKDB_ERROR_ENUMReturn status
>KI_PID

KI_PID

This routine will test whether a process identified by the given process identifier pid is still active. It will return 0 if the process exists and 1 if it does not (these correspond to the standard error codes for KE_SUCCESS and KE_NOTFOUND.)

History
Introduced in KCML 3.00
See Also:
IP_TOS, KI_AES_DECRYPT, KI_AES_ENCRYPT, KI_COMP, KI_COMPFILE, KI_CRYPT, KI_DCOMP, KI_DCOMPFILE, KI_DES_DECRYPT, KI_DES_ENCRYPT, KI_DF, KI_DFK, KI_DIR, KI_DIR_LIST, KI_DS, KI_MD5, KI_PMATCH, KI_SHA1, KI_SIZE, KI_STAT, KI_STATFS, KI_TOUCH, R7_DATE2J, R7_J2DATE
KCML database status codes