On 15 Nov 2019, at 8:03am, Graham Holden <sql...@aldurslair.com> wrote:

> What I *think* this may mean is that re-spawned children will inhereit
> the open file-handle of the SQLite connection opened by the parent
> after it initially fired all child processes.

That's not a problem.

> Even if the (re-spawned)
> child never make use of that connection or the file-handle, when it
> next dies (either a natural death or another unexpected termination),
> then the OS will close the inherited file-handle and release all
> file-locks on it

That's a huge problem.  In which case you're right: the parent process should 
close SQLite connections before it forks.

Is that really how Unix works ?  How annoying.  Seems a strange design-choice, 
but it wouldn't be the only one.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to