Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Dec 8, 2024
1 parent b00b848 commit a565751
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions file-locking/fcntl-locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ unlock(int fd, struct flock *fl)
err(1, "fcntl");
}

/*
* Dump the contents of the file to stdout. If any kind of locking is in use,
* adhere to the locking range to get meaningful output in the presence
* of advisory locking.
*/
static void
dump_file(char *filename, bool locking)
{
Expand Down

0 comments on commit a565751

Please sign in to comment.