swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what happens after you push Quit


From: Marcus G. Daniels
Subject: Re: what happens after you push Quit
Date: 28 Aug 2000 14:06:32 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "RLR" == Rick Riolo <address@hidden> writes:

RLR> A couple of questions: a) is this how it works for you? 

Yes.  There was in fact a exit(3) call in ControlPanel that is called
when Quit is pressed when the sim is in a stopped state.  I think it
was put there long ago to handle the case of Quit after an initial
-buildObjects setStateStopped, which would otherwise need to be
trailed by -getState call conditional with its own exit code (the
right thing).

For now, I'm going to remove that call to exit, and see what I can
break.  It is totally inappropriate to call exit(3) now that the
Swarm library may be owned by Java or Mozilla.

Index: ControlPanel.m
===================================================================
RCS file: /cvs/hive/Swarm/swarm/src/simtoolsgui/ControlPanel.m,v
retrieving revision 1.21
diff -c -r1.21 ControlPanel.m
*** ControlPanel.m      2000/02/27 18:46:44     1.21
--- ControlPanel.m      2000/08/28 20:54:24
***************
*** 136,146 ****
        [self setState: ControlStateStopped];
        [ctlObj waitRun];
  #endif
!       // Check now if the user hit the quit button: if so, quit.
!       if (state == ControlStateQuit)
!         exit(0);
!       else
!         return self;
      }
  }
  
--- 136,142 ----
        [self setState: ControlStateStopped];
        [ctlObj waitRun];
  #endif
!       return self;
      }
  }
  

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]