Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 276109 Details for
Bug 369811
sys-apps/openrc: Patch to measure time required for starting daemons (was: delay to sys-auth/consolekit init script)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
openrc-measure-delay.diff
openrc-measure-delay.diff (text/plain), 532 bytes, created by
Fabio Rossi
on 2011-06-07 08:17:51 UTC
(
hide
)
Description:
openrc-measure-delay.diff
Filename:
MIME Type:
Creator:
Fabio Rossi
Created:
2011-06-07 08:17:51 UTC
Size:
532 bytes
patch
obsolete
>--- src/rc/start-stop-daemon.c.old 2011-06-06 23:29:23.194849047 +0200 >+++ src/rc/start-stop-daemon.c 2011-06-06 23:31:42.641856843 +0200 >@@ -1360,7 +1360,15 @@ > alive = true; > } else { > if (pidfile) { >- pid = get_pid(pidfile, true); >+ unsigned int my_c; >+ for(my_c=0 ; my_c<500 ; my_c++) >+ { >+ usleep(10000); >+ pid = get_pid(pidfile, true); >+ if(pid != -1) >+ break; >+ } >+ printf("delay = %d * 10ms\n", my_c); > if (pid == -1) { > eerrorx("%s: did not " > "create a valid"
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 369811
:
275621
|
275645
| 276109