Skip to content

Commit a565751

Browse files
committed
add comment
1 parent b00b848 commit a565751

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

file-locking/fcntl-locking.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ unlock(int fd, struct flock *fl)
117117
err(1, "fcntl");
118118
}
119119

120+
/*
121+
* Dump the contents of the file to stdout. If any kind of locking is in use,
122+
* adhere to the locking range to get meaningful output in the presence
123+
* of advisory locking.
124+
*/
120125
static void
121126
dump_file(char *filename, bool locking)
122127
{

0 commit comments

Comments
 (0)