(go to: table of contents, index, list of vms_sys, prev: REM_IDENT, next: REVOKID)
Format:
RESUME - Resume Process
Causes a process previously suspended by the Suspend Process
(SYS$SUSPND) service to resume execution or
cancels the effect of a subsequent suspend request.
28-SEP-1998 ZE.
targpid = vms_sys.resume ([pidadr] [,prcnam])
Returns:
Arguments:
The targed PID (targpid) is always returned - it is as if you have specified
a '0' value for the 'pidadr' argument.
If an error happens, then vms_sys.resume() raises a Python exception.
Examples:
>>> import vms_sys
>>> print vms_sys.resume (464)
464
>>> vms_sys.resume (None,'TARG_PRC')
476
>>> vms_sys.resume (0,'TARG_PRC')
476
>>> vms_sys.resume (1,2)
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: argument 2: expected read-only buffer, int found
>>> nonexist_pid = 99
>>> vms_sys.resume (nonexist_pid)
Traceback (innermost last):
File "<stdin>", line 1, in ?
vms_sys.error: (2280, '%SYSTEM-W-NONEXPR, nonexistent process')
>>> vms_sys.resume (None,'NONEXPRC')
Traceback (innermost last):
File "<stdin>", line 1, in ?
vms_sys.error: (2280, '%SYSTEM-W-NONEXPR, nonexistent process')
>>> vms_sys.resume ()
352 <-- set RESUME on current process - the next
$ SET PROCESS/SUSPEND ! continues immediately
>>> vms_sys.resume (None,None)
352 <-- set RESUME on current process - the next
$ SET PROCESS/SUSPEND ! continues immediately
(go to: table of contents,
index,
list of vms_sys,
prev: REM_IDENT,
next: REVOKID)