Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6619 > unrolled thread
| Started by | Paul Stewart <phorefaux@gmail.com> |
|---|---|
| First post | 2026-03-15 01:07 +0000 |
| Last post | 2026-03-15 16:36 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.sys.acorn.programmer
Watchdog and closing application child tasks Paul Stewart <phorefaux@gmail.com> - 2026-03-15 01:07 +0000
Re: Watchdog and closing application child tasks Martin <News04@avisoft.f9.co.uk> - 2026-03-15 07:59 +0000
Re: Watchdog and closing application child tasks Paul Stewart <phorefaux@gmail.com> - 2026-03-15 16:36 +0000
| From | Paul Stewart <phorefaux@gmail.com> |
|---|---|
| Date | 2026-03-15 01:07 +0000 |
| Subject | Watchdog and closing application child tasks |
| Message-ID | <20deb3b95c.Paul@phorefaux> |
Hi all, Does the system watchdog broadcast a specific message to terminate an application? The reason for asking is I have an application written in BASIC that spawns a couple of child tasks. As part of the close down routine it does close down any open child tasks. This appears to be working fine. If I quit the program whilst child task is running, then the open child task quits, as expected, same as if I quit my application from Task display/Task manager. However when the task is closed via system watchdog(Alt-Break), the main task is closed, but not any open child tasks. I am therefore wondering if there is a specific message I need to listen out for so I can close the child tasks too? -- Paul Stewart Sent from A9home running RISC OS 4.42
[toc] | [next] | [standalone]
| From | Martin <News04@avisoft.f9.co.uk> |
|---|---|
| Date | 2026-03-15 07:59 +0000 |
| Message-ID | <5cb9d9a3afNews04@avisoft.f9.co.uk> |
| In reply to | #6619 |
In article <20deb3b95c.Paul@phorefaux>, Paul Stewart <phorefaux@gmail.com> wrote: > Does the system watchdog broadcast a specific message to terminate > an application? > The reason for asking is I have an application written in BASIC > that spawns a couple of child tasks. As part of the close down > routine it does close down any open child tasks. This appears to > be working fine. If I quit the program whilst child task is > running, then the open child task quits, as expected, same as if I > quit my application from Task display/Task manager. > However when the task is closed via system watchdog(Alt-Break), the > main task is closed, but not any open child tasks. I am therefore > wondering if there is a specific message I need to listen out for > so I can close the child tasks too? The Watchdog terminates a task immediately. The task has no control at all, so gets no chance to take any action whatsoever. Any open files will be left open. Such termination really should be a last resort to regain control of the machine, but the task is toast. -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.
[toc] | [prev] | [next] | [standalone]
| From | Paul Stewart <phorefaux@gmail.com> |
|---|---|
| Date | 2026-03-15 16:36 +0000 |
| Message-ID | <63f908ba5c.Paul@phorefaux> |
| In reply to | #6620 |
In message <5cb9d9a3afNews04@avisoft.f9.co.uk>
Martin <News04@avisoft.f9.co.uk> wrote:
> In article <20deb3b95c.Paul@phorefaux>,
> Paul Stewart <phorefaux@gmail.com> wrote:
>> Does the system watchdog broadcast a specific message to terminate
>> an application?
>> The reason for asking is I have an application written in BASIC
>> that spawns a couple of child tasks. As part of the close down
>> routine it does close down any open child tasks. This appears to
>> be working fine. If I quit the program whilst child task is
>> running, then the open child task quits, as expected, same as if I
>> quit my application from Task display/Task manager.
>> However when the task is closed via system watchdog(Alt-Break), the
>> main task is closed, but not any open child tasks. I am therefore
>> wondering if there is a specific message I need to listen out for
>> so I can close the child tasks too?
> The Watchdog terminates a task immediately. The task has no control at
> all, so gets no chance to take any action whatsoever. Any open files
> will be left open. Such termination really should be a last resort to
> regain control of the machine, but the task is toast.
Thanks for your prompt response.
Ok. Thought as much, but just wanted to double check I wasn't missing a
message that I could use to close my child tasks down with.
--
Paul Stewart
Sent from A9home running RISC OS 4.42
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.acorn.programmer
csiph-web