[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what happens after you push Quit
From: |
Rick Riolo |
Subject: |
Re: what happens after you push Quit |
Date: |
Tue, 29 Aug 2000 10:19:55 -0400 (EDT) |
marcus-
thanks!
- r
Rick Riolo address@hidden
Center for Study of Complex Systems (CSCS)
4477 Randall Lab
University of Michigan Ann Arbor MI 48109-1120
Phone: 734 763 3323 Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html
On 28 Aug 2000, Marcus G. Daniels wrote:
> Date: 28 Aug 2000 14:06:32 -0700
> From: Marcus G. Daniels <address@hidden>
> Reply-To: address@hidden
> To: address@hidden
> Subject: Re: what happens after you push Quit
>
> >>>>> "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.
>
>
==================================
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.