/ Check-in [af9ba2a6]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a typo in the robust_flock() macro for systems without EINTR.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: af9ba2a6d2c37915e799eec52bb827de46afd34d
User & Date: drh 2011-02-23 14:00:12
References
2011-02-23
14:33
Automatically retry system calls that fail with EINTR. This is a backport of the changes from [b9d29ea385bafc] and [af9ba2a6d2c379]. Leaf check-in: 8609a15d user: drh tags: branch-3.7.4
Context
2011-02-23
22:39
Reserve a range of bits in the SQLITE_OPEN_xxxx bit vector for future expansion. check-in: 9b904654 user: drh tags: trunk
14:00
Fix a typo in the robust_flock() macro for systems without EINTR. check-in: af9ba2a6 user: drh tags: trunk
13:33
Retry selected system calls on unix when they fail with EINTR. check-in: b9d29ea3 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

  1809   1809   #ifdef EINTR
  1810   1810   static int robust_flock(int fd, int op){
  1811   1811     int rc;
  1812   1812     do{ rc = flock(fd,op); }while( rc<0 && errno==EINTR );
  1813   1813     return rc;
  1814   1814   }
  1815   1815   #else
  1816         -# define robust_flock(a,b) fclose(a,b)
         1816  +# define robust_flock(a,b) flock(a,b)
  1817   1817   #endif
  1818   1818        
  1819   1819   
  1820   1820   /*
  1821   1821   ** This routine checks if there is a RESERVED lock held on the specified
  1822   1822   ** file by this or any other process. If such a lock is held, set *pResOut
  1823   1823   ** to a non-zero value otherwise *pResOut is set to zero.  The return value