Well, All of my process are using Mutex to protect sqlite from concurrent access.
That why I don't understand why I get SQLITE_BUSY error . Micka, On Tue, Jul 8, 2014 at 11:44 PM, Simon Slavin <slav...@bigfraud.org> wrote: > > On 8 Jul 2014, at 8:39pm, Micka <mickamus...@gmail.com> wrote: > > > i'm using sqlite in different process. Sometimes I got the error Busy > ... => > > > > When SQLite tries to access a file that is locked by another process, the > > default behavior is to return SQLITE_BUSY. > > > > > > So how can I prevent that ? > > Have you set a timeout, so that SQLite can back off for a little time then > try again ? > > Use either > > <http://www.sqlite.org/c3ref/busy_timeout.html> > > or > > <http://www.sqlite.org/pragma.html#pragma_busy_timeout> > > Simon. > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users