From: Robert Hancock <hancockr@shaw.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: linux: detect application crash
Date: Thu, 17 Mar 2005 17:48:31 -0600 [thread overview]
Message-ID: <423A174F.6090906@shaw.ca> (raw)
In-Reply-To: <3J9Nd-3qf-19@gated-at.bofh.it>
Allison wrote:
> Hi,
>
> Several times when I worked with Windows, I have had a scenario when I
> am editing a file and saved some time ago and then the application
> crashes and I lose all recent data.
>
> Can the operating system detect all application crashes ? If so, why
> can't the OS save the user data to disk before the application quits ?
>
> How does this work in Linux. I was curious if such a functionality
> already exists in Linux. If not, what are the issues involved in
> implementing this functionality.
The OS doesn't have enough information to be able to save the app's data
in the event of a crash in a form that would be usable or meaningful,
since only the app knows what format its data structures are in.
The app itself could do this (installing a signal handler for segfaults,
etc.) but the problem is that whatever caused the program to crash may
have also left its data in a messed-up state.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
next parent reply other threads:[~2005-03-17 23:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3J9Nd-3qf-19@gated-at.bofh.it>
2005-03-17 23:48 ` Robert Hancock [this message]
2005-03-17 20:27 linux: detect application crash Allison
2005-03-17 20:33 ` Robert Love
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=423A174F.6090906@shaw.ca \
--to=hancockr@shaw.ca \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.