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 315353 Details for
Bug 460645
qdiskd isn't always closing file descriptors properly before forking
[?]
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.
[patch]
Patch to close the file descriptors in the event of errors.
qdisk-close-fd.patch (text/plain), 725 bytes, created by
Sean E. Millichamp
on 2008-08-29 13:06:12 UTC
(
hide
)
Description:
Patch to close the file descriptors in the event of errors.
Filename:
MIME Type:
Creator:
Sean E. Millichamp
Created:
2008-08-29 13:06:12 UTC
Size:
725 bytes
patch
obsolete
>diff -ru cman-2.0.84/cman/qdisk/disk.c cman-2.0.84-fixed/cman/qdisk/disk.c >--- cman-2.0.84/cman/qdisk/disk.c 2008-04-15 16:15:23.000000000 -0400 >+++ cman-2.0.84-fixed/cman/qdisk/disk.c 2008-08-29 00:03:38.000000000 -0400 >@@ -228,6 +228,7 @@ > ret = ioctl(disk->d_fd, BLKSSZGET, &ssz); > if (ret < 0) { > perror("qdisk_open: ioctl(BLKSSZGET)"); >+ close(disk->d_fd); > return -1; > } > >@@ -238,12 +239,14 @@ > ret = lseek(disk->d_fd, END_OF_DISK(disk->d_blksz), SEEK_SET); > if (ret < 0) { > perror("open_partition: seek"); >+ close(disk->d_fd); > return -1; > } > > if (ret < END_OF_DISK(disk->d_blksz)) { > fprintf(stderr, "Partition %s too small\n", name); > errno = EINVAL; >+ close(disk->d_fd); > return -1; > } >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 460645
: 315353 |
315593