I happened to notice this code in the output of a git grep somewhere:
usleep(10000000); /* wait 10 sec and try the lock again */
usleep is documented to fail with EINVAL if its argument is greater
than 1,000,000. I'm not sure if that takes effect on all platforms, but it
could very well reduce to a quick function that just sets errno if usleep fails.
--
Dustin Sallings
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users