Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
sqlite3_close() necessary?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bill McCormick  
View profile  
 More options Jan 17 2012, 11:51 am
From: Bill McCormick <wpmccorm...@gmail.com>
Date: Tue, 17 Jan 2012 10:51:10 -0600
Local: Tues, Jan 17 2012 11:51 am
Subject: [sqlite] sqlite3_close() necessary?
What happens if my application fails to call sqlite3_close() before it
exits? Does it leave the db in some unknown state or open to corruption?

If I have a daemon type program, will I need to catch signals that try
to close/kill the program and call sqlite3_close() before exiting?

Thanks!!
_______________________________________________
sqlite-users mailing list
sqlite-us...@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Hipp  
View profile  
 More options Jan 17 2012, 11:56 am
From: Richard Hipp <d...@sqlite.org>
Date: Tue, 17 Jan 2012 11:56:06 -0500
Local: Tues, Jan 17 2012 11:56 am
Subject: Re: [sqlite] sqlite3_close() necessary?
On Tue, Jan 17, 2012 at 11:51 AM, Bill McCormick <wpmccorm...@gmail.com>wrote:

> What happens if my application fails to call sqlite3_close() before it
> exits? Does it leave the db in some unknown state or open to corruption?

> If I have a daemon type program, will I need to catch signals that try to
> close/kill the program and call sqlite3_close() before exiting?

Failure to call sqlite3_close() results in memory and file-descriptor leaks
if your process keeps running.  But as those resources are cleaned up
automatically when the process exits, failure to call sqlite3_close() prior
to exit is harmless.

If you are using WAL mode, failure to call sqlite3_close() might leave -wal
and -shm lingering on your disk.  But the next process to open the database
file will clean them up automatically, so no harm done.

> Thanks!!
> ______________________________**_________________
> sqlite-users mailing list
> sqlite-us...@sqlite.org
> http://sqlite.org:8080/cgi-**bin/mailman/listinfo/sqlite-**users<http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users>

--
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-us...@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »