Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 203001 Details for
Bug 280311
circular locking in NLM subsystem
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
reproducer program
lockloop.c (text/plain), 633 bytes, created by
Jeff Layton
on 2007-09-22 13:25:01 UTC
(
hide
)
Description:
reproducer program
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2007-09-22 13:25:01 UTC
Size:
633 bytes
patch
obsolete
>#include <unistd.h> >#include <fcntl.h> >#include <stdio.h> > >int >main(int argc, char **argv) >{ > struct flock fl; > int fd, err; > > if (argc != 2) { > printf("usage: %s <filename>\n", argv[0]); > return 1; > } > > fd = open(argv[1], O_CREAT|O_RDWR, 0666); > if (fd < 0) { > perror("open"); > return 2; > } > > fl.l_whence = SEEK_SET; > fl.l_start = 0; > fl.l_len = 0; > > while(1) { > fl.l_type = F_WRLCK; > err = fcntl(fd, F_SETLKW, &fl); > if (err < 0) { > perror("fcntl1"); > return 3; > } > sleep(2); > fl.l_type = F_UNLCK; > err = fcntl(fd, F_SETLKW, &fl); > if (err < 0) { > perror("fcntl2"); > return 4; > } > sleep(1); > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 280311
:
196301
|
202831
| 203001