Merge lp:~joel-sher/openvista-gtm-integration/bug370652 into lp:openvista-gtm-integration

Proposed by JSHER
Status: Merged
Merged at revision: not available
Proposed branch: lp:~joel-sher/openvista-gtm-integration/bug370652
Merge into: lp:openvista-gtm-integration
Diff against target: None lines
To merge this branch: bzr merge lp:~joel-sher/openvista-gtm-integration/bug370652
Reviewer Review Type Date Requested Status
jeff.apple Needs Fixing
Review via email: mp+6483@code.launchpad.net
To post a comment you must log in.
Revision history for this message
jeff.apple (jeff-apple) wrote :

MSCZJOBU reverts changes from previous versions. For example, it calls "mupip intrpt" instead of "gtmsignal".

review: Needs Fixing
45. By JSHER

Corrected verision of MSCZJOBU.m

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mumps/MSCZJOB.m'
--- mumps/MSCZJOB.m 2009-04-28 18:34:54 +0000
+++ mumps/MSCZJOB.m 2009-05-12 18:10:30 +0000
@@ -1,4 +1,4 @@
1MSCZJOB ;GFT,JDS/MSC;28JAN20091MSCZJOB ;GFT,JDS/MSC;1 MAY 2009
2 ;;8.0;KERNEL;**MSC**2 ;;8.0;KERNEL;**MSC**
3 W !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!3 W !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4 N MSC4 N MSC
@@ -93,4 +93,4 @@
93UNL(D0) ;FROM FIELD 2, PAGE 3: UNLOCK THE LOCK93UNL(D0) ;FROM FIELD 2, PAGE 3: UNLOCK THE LOCK
94 N X,R S R=$P($G(MSCZLK(D0)),U),P=$P($G(MSCZLK(D0)),U,5) ;I R'["^" Q ;CAN'T SEE IT94 N X,R S R=$P($G(MSCZLK(D0)),U),P=$P($G(MSCZLK(D0)),U,5) ;I R'["^" Q ;CAN'T SEE IT
95 S R=$P(R,"~",2),R="^"_$S(R'["(":$P(R," "),1:$P(R,")")_")"),X="L "_R D ^DIM Q:'$D(X) ;GOOD SYNTAX?95 S R=$P(R,"~",2),R="^"_$S(R'["(":$P(R," "),1:$P(R,")")_")"),X="L "_R D ^DIM Q:'$D(X) ;GOOD SYNTAX?
96 D UNLOCK^MSCZJOBU(R,P)96 D UNLOCK^MSCZJOBU(R)
9797
=== modified file 'mumps/MSCZJOBU.m'
--- mumps/MSCZJOBU.m 2009-05-01 21:23:14 +0000
+++ mumps/MSCZJOBU.m 2009-05-12 18:10:30 +0000
@@ -1,4 +1,4 @@
1MSCZJOBU ;RHL,JDS/MSC;26JUNE20071MSCZJOBU ;RHL,JDS/MSC;1MAY 2009
2 ;;8.0;KERNEL;**MSC**2 ;;8.0;KERNEL;**MSC**
3 ;3 ;
4 ; JOB EXAM UTILITIES FOR GT.M4 ; JOB EXAM UTILITIES FOR GT.M
@@ -31,24 +31,27 @@
31 ; PID CAN BE A SINGLE PID, I.E. $J31 ; PID CAN BE A SINGLE PID, I.E. $J
32 ; PID CAN BE A "*" WHICH SENDS AN INTERRUPT TO ALL MUMPS PROCESSES32 ; PID CAN BE A "*" WHICH SENDS AN INTERRUPT TO ALL MUMPS PROCESSES
33 ;33 ;
34 N CMD34 Q:$G(PID)=""
35 S PID=$G(PID)35 ;
36 Q:(PID="")!'((PID="*")!(PID=+PID))36 I PID="*" D Q ; ALL PIDS
37 ;37 . N ARRAY
38 S DEV="gtmsignaldev"38 . D PIDS(.ARRAY)
39 S CMD="gtmsignal -q "_$S(PID="*":"-a",1:PID)39 . N %J S %J=""
40 OPEN DEV:(COMM=CMD)::"PIPE" U DEV C DEV40 . F S %J=$O(ARRAY(%J)) Q:%J="" D
41 . . S A="test1",c="mupip intrpt "_%J_" > /dev/null"
42 . . OPEN A:(COMM="mupip intrpt "_%J)::"PIPE" U A C A
43 ;
44 ; JUST 1 PID
45 Q:PID'?1N.N
46 S A="test1"
47 OPEN A:(COMM="mupip intrpt "_PID)::"PIPE" U A C A
41 Q48 Q
42 ;49 ;
43KILL(PID) ; Send PID to mupip to kill process50KILL(PID) ; Send PID to mupip to kill process
44 Q:PID'?1N.N51 Q:PID'?1N.N
45 S DEV="gtmsignaldev"52 ZSYSTEM "mupip stop "_PID_" > /dev/null"
46 OPEN DEV:(COMM="gtmsignal -q -s "_PID)::"PIPE" U DEV C DEV
47 Q53 Q
48 ;54 ;
49UNLOCK(NODE,PROC) ; Use lke to remove lock on NODE.55UNLOCK(NODE) ; Use lke to remove lock on NODE.
50 N CMD,DEV56 ZSYSTEM "lke clear -lock="""_NODE_""" -nointeractive -output=/dev/null"
51 S CMD="lke clear -lock="""_NODE_""" -nointeractive -output=/dev/null"
52 S DEV="lkedev"
53 OPEN DEV:(COMM=CMD)::"PIPE" U DEV C DEV
54 Q57 Q
5558
=== modified file 'mumps/ZCD.m'
--- mumps/ZCD.m 2009-05-01 19:30:14 +0000
+++ mumps/ZCD.m 2009-05-12 18:44:59 +0000
@@ -1,4 +1,4 @@
1ZCD ; MSC/JKT,JDS ; "Namespace" utilities for GT.M/Unix ; 01/30/20091ZCD ; MSC/JKT,JDS ; "Namespace" utilities for GT.M/Unix ; 5/8/2009
2 ;;8.0;KERNEL;**MSC**;April 21 20092 ;;8.0;KERNEL;**MSC**;April 21 2009
3 ; This routine assumes that your global directory file exists one 3 ; This routine assumes that your global directory file exists one
4 ; directory below the root of the instance, e.g., 4 ; directory below the root of the instance, e.g.,
@@ -68,18 +68,6 @@
68 C P68 C P
69 Q X69 Q X
70 ;70 ;
71SWITCH(INSTANCE)
72 ; switch to another OpenVista instance by setting $ZG and $ZRO
73 ;
74 ; there are several ways to do this; try them in order until
75 ; one succeeds
76 ;
77 ; FIXME: we may want to allow this entry point to be called using DO
78 Q:$$SWITCH1(INSTANCE) 1
79 Q:$$SWITCH2(INSTANCE) 1
80 Q:$$SWITCH3(INSTANCE) 1
81 Q 0
82 ;
83SWITCH1(INSTANCE) 71SWITCH1(INSTANCE)
84 ; private entry point72 ; private entry point
85 ;73 ;
@@ -116,32 +104,6 @@
116 ; FIXME: do we need to set $ZINTERRUPT and $PATH?104 ; FIXME: do we need to set $ZINTERRUPT and $PATH?
117 Q 1105 Q 1
118 ;106 ;
119SWITCH2(INSTANCE)
120 ; private entry point
121 ;
122 ; look for new values of $ZG and $ZRO in env file of target instance
123 ;
124 ; if the env file does not exist or is unreadable (permission denied)
125 ; or unparsable, Q 0 without setting $ZG and $ZRO
126 ;
127 ; FIXME: implement this
128 ;
129 ; FIXME: do we need to set $ZINTERRUPT and $PATH?
130 Q 0
131 ;
132SWITCH3(INSTANCE)
133 ; private entry point
134 ;
135 ; get new values of $ZG and $ZRO by replacing $$PATH() with
136 ; $$ROOT()_"/"_INSTANCE. Q 0 without setting $ZG and $ZRO if the
137 ; resulting paths don't actually exist or we do not have permission to
138 ; access them
139 ;
140 ; FIXME: implement this
141 ;
142 ; FIXME: do we need to set $ZINTERRUPT and $PATH?
143 Q 0
144 ;
145CD ;Interactive107CD ;Interactive
146 N Y,DIR108 N Y,DIR
147 R !,"Namespace: ",DIR109 R !,"Namespace: ",DIR

Subscribers

People subscribed via source and target branches