Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 337382 Details for
Bug 434800
sys-apps/openrc-0.10.5: [RC_PARALLEL] flock() failed: Interrupted system call
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch - retry flock if it was interrupted by signal
retry-interrupted-flock.patch (text/plain), 595 bytes, created by
Alexander Mezin
on 2013-01-31 06:50:46 UTC
(
hide
)
Description:
Patch - retry flock if it was interrupted by signal
Filename:
MIME Type:
Creator:
Alexander Mezin
Created:
2013-01-31 06:50:46 UTC
Size:
595 bytes
patch
obsolete
>diff -Naur openrc-0.11.8.orig/src/rc/runscript.c openrc-0.11.8/src/rc/runscript.c >--- openrc-0.11.8.orig/src/rc/runscript.c 2013-01-31 13:27:15.445174830 +0700 >+++ openrc-0.11.8/src/rc/runscript.c 2013-01-31 13:26:30.481837217 +0700 >@@ -311,8 +311,12 @@ > lock_fd = open(PREFIX_LOCK, O_WRONLY | O_CREAT, 0664); > > if (lock_fd != -1) { >- if (flock(lock_fd, LOCK_EX) != 0) >- eerror("flock() failed: %s", strerror(errno)); >+ while (flock(lock_fd, LOCK_EX) != 0) { >+ if (errno != EINTR) { >+ eerror("flock() failed: %s", strerror(errno)); >+ break; >+ } >+ } > } > #ifdef RC_DEBUG > else
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 434800
:
323578
| 337382