Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 252457 Details for
Bug 303120
sys-process/procps: fix "Unknown HZ value!" on some machines
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch: call init_Linux_version() before init_libproc()
procps-3.2.8-fix-constructor-disorder.patch (text/plain), 1001 bytes, created by
Chris Coleman
on 2010-10-29 06:19:25 UTC
(
hide
)
Description:
patch: call init_Linux_version() before init_libproc()
Filename:
MIME Type:
Creator:
Chris Coleman
Created:
2010-10-29 06:19:25 UTC
Size:
1001 bytes
patch
obsolete
>diff -upr a/proc/sysinfo.c b/proc/sysinfo.c >--- a/proc/sysinfo.c 2008-03-24 04:33:43.000000000 +0000 >+++ b/proc/sysinfo.c 2010-10-29 07:11:04.941101001 +0100 >@@ -209,7 +209,7 @@ static int check_for_privs(void){ > return !!rc; > } > >-static void init_libproc(void) __attribute__((constructor)); >+static void init_libproc(void) __attribute__((constructor(200))); > static void init_libproc(void){ > have_privs = check_for_privs(); > // ought to count CPUs in /proc/stat instead of relying >diff -upr a/proc/version.c b/proc/version.c >--- a/proc/version.c 2003-01-29 01:11:43.000000000 +0000 >+++ b/proc/version.c 2010-10-29 07:11:11.801101003 +0100 >@@ -33,7 +33,7 @@ void display_version(void) { > > int linux_version_code; > >-static void init_Linux_version(void) __attribute__((constructor)); >+static void init_Linux_version(void) __attribute__((constructor(100))); > static void init_Linux_version(void) { > static struct utsname uts; > int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */
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 303120
:
218096
|
218098
|
252457
|
254257
|
254687
|
254689
|
261747