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
1=== modified file 'mumps/MSCZJOB.m'
2--- mumps/MSCZJOB.m 2009-04-28 18:34:54 +0000
3+++ mumps/MSCZJOB.m 2009-05-12 18:10:30 +0000
4@@ -1,4 +1,4 @@
5-MSCZJOB ;GFT,JDS/MSC;28JAN2009
6+MSCZJOB ;GFT,JDS/MSC;1 MAY 2009
7 ;;8.0;KERNEL;**MSC**
8 W !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9 N MSC
10@@ -93,4 +93,4 @@
11 UNL(D0) ;FROM FIELD 2, PAGE 3: UNLOCK THE LOCK
12 N X,R S R=$P($G(MSCZLK(D0)),U),P=$P($G(MSCZLK(D0)),U,5) ;I R'["^" Q ;CAN'T SEE IT
13 S R=$P(R,"~",2),R="^"_$S(R'["(":$P(R," "),1:$P(R,")")_")"),X="L "_R D ^DIM Q:'$D(X) ;GOOD SYNTAX?
14- D UNLOCK^MSCZJOBU(R,P)
15+ D UNLOCK^MSCZJOBU(R)
16
17=== modified file 'mumps/MSCZJOBU.m'
18--- mumps/MSCZJOBU.m 2009-05-01 21:23:14 +0000
19+++ mumps/MSCZJOBU.m 2009-05-12 18:10:30 +0000
20@@ -1,4 +1,4 @@
21-MSCZJOBU ;RHL,JDS/MSC;26JUNE2007
22+MSCZJOBU ;RHL,JDS/MSC;1MAY 2009
23 ;;8.0;KERNEL;**MSC**
24 ;
25 ; JOB EXAM UTILITIES FOR GT.M
26@@ -31,24 +31,27 @@
27 ; PID CAN BE A SINGLE PID, I.E. $J
28 ; PID CAN BE A "*" WHICH SENDS AN INTERRUPT TO ALL MUMPS PROCESSES
29 ;
30- N CMD
31- S PID=$G(PID)
32- Q:(PID="")!'((PID="*")!(PID=+PID))
33- ;
34- S DEV="gtmsignaldev"
35- S CMD="gtmsignal -q "_$S(PID="*":"-a",1:PID)
36- OPEN DEV:(COMM=CMD)::"PIPE" U DEV C DEV
37+ Q:$G(PID)=""
38+ ;
39+ I PID="*" D Q ; ALL PIDS
40+ . N ARRAY
41+ . D PIDS(.ARRAY)
42+ . N %J S %J=""
43+ . F S %J=$O(ARRAY(%J)) Q:%J="" D
44+ . . S A="test1",c="mupip intrpt "_%J_" > /dev/null"
45+ . . OPEN A:(COMM="mupip intrpt "_%J)::"PIPE" U A C A
46+ ;
47+ ; JUST 1 PID
48+ Q:PID'?1N.N
49+ S A="test1"
50+ OPEN A:(COMM="mupip intrpt "_PID)::"PIPE" U A C A
51 Q
52 ;
53 KILL(PID) ; Send PID to mupip to kill process
54 Q:PID'?1N.N
55- S DEV="gtmsignaldev"
56- OPEN DEV:(COMM="gtmsignal -q -s "_PID)::"PIPE" U DEV C DEV
57+ ZSYSTEM "mupip stop "_PID_" > /dev/null"
58 Q
59 ;
60-UNLOCK(NODE,PROC) ; Use lke to remove lock on NODE.
61- N CMD,DEV
62- S CMD="lke clear -lock="""_NODE_""" -nointeractive -output=/dev/null"
63- S DEV="lkedev"
64- OPEN DEV:(COMM=CMD)::"PIPE" U DEV C DEV
65+UNLOCK(NODE) ; Use lke to remove lock on NODE.
66+ ZSYSTEM "lke clear -lock="""_NODE_""" -nointeractive -output=/dev/null"
67 Q
68
69=== modified file 'mumps/ZCD.m'
70--- mumps/ZCD.m 2009-05-01 19:30:14 +0000
71+++ mumps/ZCD.m 2009-05-12 18:44:59 +0000
72@@ -1,4 +1,4 @@
73-ZCD ; MSC/JKT,JDS ; "Namespace" utilities for GT.M/Unix ; 01/30/2009
74+ZCD ; MSC/JKT,JDS ; "Namespace" utilities for GT.M/Unix ; 5/8/2009
75 ;;8.0;KERNEL;**MSC**;April 21 2009
76 ; This routine assumes that your global directory file exists one
77 ; directory below the root of the instance, e.g.,
78@@ -68,18 +68,6 @@
79 C P
80 Q X
81 ;
82-SWITCH(INSTANCE)
83- ; switch to another OpenVista instance by setting $ZG and $ZRO
84- ;
85- ; there are several ways to do this; try them in order until
86- ; one succeeds
87- ;
88- ; FIXME: we may want to allow this entry point to be called using DO
89- Q:$$SWITCH1(INSTANCE) 1
90- Q:$$SWITCH2(INSTANCE) 1
91- Q:$$SWITCH3(INSTANCE) 1
92- Q 0
93- ;
94 SWITCH1(INSTANCE)
95 ; private entry point
96 ;
97@@ -116,32 +104,6 @@
98 ; FIXME: do we need to set $ZINTERRUPT and $PATH?
99 Q 1
100 ;
101-SWITCH2(INSTANCE)
102- ; private entry point
103- ;
104- ; look for new values of $ZG and $ZRO in env file of target instance
105- ;
106- ; if the env file does not exist or is unreadable (permission denied)
107- ; or unparsable, Q 0 without setting $ZG and $ZRO
108- ;
109- ; FIXME: implement this
110- ;
111- ; FIXME: do we need to set $ZINTERRUPT and $PATH?
112- Q 0
113- ;
114-SWITCH3(INSTANCE)
115- ; private entry point
116- ;
117- ; get new values of $ZG and $ZRO by replacing $$PATH() with
118- ; $$ROOT()_"/"_INSTANCE. Q 0 without setting $ZG and $ZRO if the
119- ; resulting paths don't actually exist or we do not have permission to
120- ; access them
121- ;
122- ; FIXME: implement this
123- ;
124- ; FIXME: do we need to set $ZINTERRUPT and $PATH?
125- Q 0
126- ;
127 CD ;Interactive
128 N Y,DIR
129 R !,"Namespace: ",DIR

Subscribers

People subscribed via source and target branches