On 14 Aug 2011, at 12:18, Kevin Martin wrote:

> I am however very confused If
> anyone has the time to read this and give a hint as to what might be
> going on, it would be greatly appreciated.

Why do you always figure things out after you have posted them to the  
mailing list?

The problem was I had closed stdin, so when I opened the database in  
the execed child it was being opened on file descriptor 0. Then, when  
I did close(STDIN_FILENO) I inadvertently closed the database. Hence  
why the query was failing, and why closing/opening it fixed the problem.

Kev

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to