[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference share::zap

Title:Zap Technical Conference
Notice:ZAP Version 5.3 is available. See note 1.1
Moderator:ZAPDEV::MACONI
Created:Mon Feb 24 1986
Last Modified:Mon May 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:170
Total number of notes:492

64.0. "Question on the $FORCEX sub-routine" by RIPPLE::GOLDROSEN_DA () Mon Jul 03 1989 19:53

    	I seen some idle process killer programs that call the $FORCEX
    sub-routine and then call the $DELPRC sub-routine to kill the process.
    I seen some other programs that kill the process with out the
    $FORCEX called.  Should you call both of the sub-routines, or can
    we use the $DELPRC with out calling the $FORCEX?  What does the
    $FORCEX sub-routine do?
    							Dan
    
T.RTitleUserPersonal
Name
DateLines
64.1$FORCEX & $DELPRCWOODS::MACONIThe Doctor is InWed Jul 05 1989 14:5519
    The $FORCEX system service will send an AST to the target process and
    request that it issue a $EXIT system service.  This will, in turn,
    cause the process to trap into any exit handlers that may be defined.
    If ASTs are not being delivered, the process will not exit.
    
    No notification is sent to the requesting process to indicate if the
    target process did exit or not.
    
    $DELPRC initiates a process rundown on the target process as soon as
    the target process can become active.  This means that a suspended
    process will be activated than run down.  (A suspended process can not
    be killed via $FORCEX).  A message is sent to the requestor when the
    process rundown has neared completion.
    
    It is possible to issue the $FORCEX and then wait a minute or two
    before issueing the $DELPRC.  The ZAP utility only issues the $DELPRC
    system service to delete a process.
    
    						Keith
64.2Forcex neededUSOPS::KADOWFri May 07 1993 12:5310
    More on FORCEX please,
    
    DSM (Digital Standard Mumps) cannot be killed using the $DELPRC
    because in some cases if the process has a lock on DSM's database
    this will hang the database.
    
    Can you consider making two passes with Zap, first use FORCEX and then
    DECPRC minutes later?  Or maybe make this an option?
    
    -thanks in advance - Paul
64.3ZAPDEV::MACONIThe Doctor is InTue May 11 1993 11:2618
Hi,

	Let me check into how this will work.  Normally, the $FORCEX is only
used to exit a specific IMAGE and then $DELPRC would be used to kill the process
once it is at the $ sign.  Something like,

Rule 4: User:*, Uic:[*,*], Image:MUMPS_PROGRAM ... ACTION:EXIT
Rule 5: User:*, Uic:[*,*], Image:*, ...            ACTION:STOP

	This would cause the process running the MUMPS_PROGRAM program to have
a $FORCEX to drop it to the $ sign and then rule 5 would kick in and stop the
process.  This, of course, allows the process TWO idle time limit periods, one
for each rule.

	I will check to see what can be done with programs that do not exit when
the $FORCEX does not work.

						Keith