From mint-bounce@lists.fishpool.fi  Thu Sep 23 05:44:51 2010
Message-ID: <17892.4357491894-sendEmail@descaro>
From: "Helmut Karlowski" <helmut.karlowski@ish.de>
To: "mint@lists.fishpool.fi" <mint@lists.fishpool.fi>
Cc: "helmut.karlowski@ish.de" <helmut.karlowski@ish.de>
Subject: Re: [MiNT] Ctrl+Alt+Q deactivated
Date: Thu, 23 Sep 2010 09:41:35 +0000
X-Mailer: sendEmail-1.55
MIME-Version: 1.0
Content-Type: multipart/related; boundary="----MIME delimiter for sendEmail-911575.019666092"
X-Antivirus: avast! (VPS 100922-0, 22.09.2010), Outbound message
X-Antivirus-Status: Clean
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: helmut.karlowski@ish.de
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

This is a multi-part message in MIME format. To properly display this message you need a MIME-Version 1.0 compliant Email program.

------MIME delimiter for sendEmail-911575.019666092
Content-Type: text/plain;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

Jo Even Skarstein wrote:

> From: Helmut Karlowski <helmut.karlowski@ish.de>
> Sent: Thursday, September 23, 2010 11:21 AM
> To: <mint@lists.fishpool.fi>
> Cc: <helmut.karlowski@ish.de>
> Subject: Re: [MiNT] Ctrl+Alt+Q deactivated
>
>
> >> I haven't checked the sources, but I'm quite sure it issues a shutdown
> >> using
> >> shel_write(). So yes, it asks XaAES to perform a shutdown.
> >
> > So the shutdown should be performed without alert when issued from an
> > extern app.
>
> The alert should *only* be displayed when shutdown is initiated by
> Ctrl+Alt+Q/H. Isn't the purpose of this alert to avoid accidental shutdown?

Yes, sure!

> > But how can kernel_key be accessed by shel_write? And then it should end
> > up testing for SDMASTER again.
>
> I'm afraid I don't understand what you mean here. shel_write(SHUTDOWN...)
> just tells XaAES to start a shutdown

The alert is only called by ce_dispatch_shutdown which is only called from kernel_key.

> (http://toshyp.atari.org/de/008012.html#shel_write). I don't know how XaAES
> deals with this internally.
>
> > How is ALERT_SHUTDOWN set? Should be 0.
>
> What's this?

In k_main.c (forgot to remove, but it's 0 in my source).

Add BLOGs before every call to xaaes_do_form_alert and you'll find the reason.

-Helmut



------MIME delimiter for sendEmail-911575.019666092--


