FreeBSD Bugzilla – Attachment 174216 Details for
Bug 212259
[patch] lang/mono - Fix sysctl() call in mono_process_list()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
mono-proclib.patch (text/plain), 1.44 KB, created by
Tom Judge
on 2016-08-30 14:55:15 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Tom Judge
Created:
2016-08-30 14:55:15 UTC
Size:
1.44 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 421099) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= mono > PORTVERSION= 4.4.2.11 >+PORTREVISION= 1 > CATEGORIES= lang > MASTER_SITES= http://download.mono-project.com/sources/${PORTNAME}/ > >Index: files/patch-mono_utils_mono-proclib.c >=================================================================== >--- files/patch-mono_utils_mono-proclib.c (nonexistent) >+++ files/patch-mono_utils_mono-proclib.c (working copy) >@@ -0,0 +1,16 @@ >+--- mono/utils/mono-proclib.c.orig 2016-07-29 09:10:33 UTC >++++ mono/utils/mono-proclib.c >+@@ -107,11 +107,11 @@ mono_process_list (int *size) >+ mib [2] = KERN_PROC_ALL; >+ mib [3] = 0; >+ >+- res = sysctl (mib, 4, NULL, &data_len, NULL, 0); >++ res = sysctl (mib, 3, NULL, &data_len, NULL, 0); >+ if (res) >+ return NULL; >+ processes = (struct kinfo_proc *) malloc (data_len); >+- res = sysctl (mib, 4, processes, &data_len, NULL, 0); >++ res = sysctl (mib, 3, processes, &data_len, NULL, 0); >+ if (res < 0) { >+ free (processes); >+ if (errno != ENOMEM) > >Property changes on: files/patch-mono_utils_mono-proclib.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 212259
: 174216