Skip to content

Commit 67afb79

Browse files
committed
declare fd
1 parent 9a520dd commit 67afb79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

synchro.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@
271271
\end{itemize}
272272
\begin{alltt}
273273
void \funnm{lock}(char *lockfile) \{
274+
int fd;
274275
while((fd = open(lockfile,
275276
O\_RDWR|O\_CREAT|\emprg{O\_EXCL}, 0600)) == -1) \{
276277
sleep(1); {\rm/* busy waiting in loop for unlock */}

0 commit comments

Comments
 (0)