Skip to content
Snippets Groups Projects
Commit 7170028b authored by deuce's avatar deuce
Browse files

Fixed inverted test in last commit.

parent 3714b76c
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ int main()
printf("!FAILURE file locking\n");
else
printf("SUCCESS! Record locking\n");
if((fd2=sopen(LOCK_FNAME,O_RDWR,SH_DENYRW))!=-1) {
if((fd2=sopen(LOCK_FNAME,O_RDWR,SH_DENYRW))==-1) {
printf("SUCCESS! Cannot reopen SH_DENYRW while lock is held\n");
close(fd2);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment