Merge lp:~jontai/openvista-gtm-integration/bug429699 into lp:openvista-gtm-integration

Proposed by Jon Tai
Status: Rejected
Rejected by: Jon Tai
Proposed branch: lp:~jontai/openvista-gtm-integration/bug429699
Merge into: lp:openvista-gtm-integration
Diff against target: 18 lines
1 file modified
mumps/ZISTCPS.m (+2/-2)
To merge this branch: bzr merge lp:~jontai/openvista-gtm-integration/bug429699
Reviewer Review Type Date Requested Status
JSHER Approve
Review via email: mp+13813@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jon Tai (jontai) wrote :

I think it would be good if Joel or one of the other MUMPS guys weighed in here to say if they felt this change was necessary or not. The bug didn't include the circumstances under which the problem occurred, so I wonder if it was during a debugging session or if ZRULE can really be undefined when EXIT is called under "normal" use.

Or is our policy to go ahead and use $G whenever we can?

Revision history for this message
JSHER (joel-sher) wrote :

We already have
ZRULE=$G(ZRULE) in the routine

I like Jon am wondering how we got here without ZRULE defined.

Although the change will not hurt anything and the code would fix the bug as described.

review: Approve
Revision history for this message
Jon Tai (jontai) wrote :

> We already have
> ZRULE=$G(ZRULE) in the routine
>
> I like Jon am wondering how we got here without ZRULE defined.
>
> Although the change will not hurt anything and the code would fix the bug as
> described.

I discussed this with Jeff and we decided to drop this patch. Under normal circumstances, ZRULE should be set to $G(ZRULE) already -- we must have been calling EXIT directly during debugging when we ran into this. We can re-open the bug if we run into a real-world situation where EXIT is called and ZRULE is undefined.

Unmerged revisions

95. By Jon Tai

make change as suggested by Jeff

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mumps/ZISTCPS.m'
2--- mumps/ZISTCPS.m 2009-06-05 20:09:12 +0000
3+++ mumps/ZISTCPS.m 2009-10-22 23:40:24 +0000
4@@ -1,4 +1,4 @@
5-%ZISTCPS ;ISF/RWF MSC/JDA - DEVICE HANDLER TCP/IP SERVER CALLS ;22APR2009
6+%ZISTCPS ;ISF/RWF MSC/JDA - DEVICE HANDLER TCP/IP SERVER CALLS ;22OCT2009
7 ;;8.0;KERNEL;**78,118,127,225,275,388,MSC**;Jul 10, 1995
8 Q
9 ;
10@@ -55,7 +55,7 @@
11 EXIT() ;See if time to exit
12 I $$S^%ZTLOAD Q 1
13 N ZISQUIT S ZISQUIT=0
14- I $L(ZRULE) X ZRULE I $G(ZISQUIT) Q 1
15+ I $L($G(ZRULE)) X ZRULE I $G(ZISQUIT) Q 1
16 Q 0
17 ;
18 LGTM ;GT.M multi thread server

Subscribers

People subscribed via source and target branches