On Tue, Feb 9, 2010 at 8:27 AM, Praveen S <[email protected]> wrote:
> Hi,
>
> I am writing a mobile application library which uses a database. The
> database is locked by applications using the library. On exit the
> applications will unlock the database.
>
> However if the application terminates abnormally then the database is in
> locked state only. Can you tell me some solution through which if a
> application exits abnormally the database can be unlocked without having to
> restart the device. On restart the database is always set to unlock mode.

Trap the abnormal termination?
http://www.opengroup.org/onlinepubs/007908799/xsh/sigaction.html

Don't abnormally terminate?

Tell the database that the current lock it has is for an application
that has terminated?

-- 
PJH

http://shabbleland.myminicity.com/env
http://www.chavgangs.com/register.php?referer=9375

Reply via email to