[Mono-dev] mono/mini/driver.c patch for RHEL3 compatability

C S Vadiraj csvadiraj at novell.com
Thu Dec 20 02:03:31 EST 2007


> --- mono/mini/driver.c  2007-12-19 15:04:53.000000000 -0800
> +++ mono/mini/patched-driver.c  2007-12-19 15:05:20.000000000 -0800
> @@ -706,8 +706,16 @@
>  
>  #if HAVE_SCHED_SETAFFINITY
>         if (getenv ("MONO_NO_SMP")) {
> +#  ifdef GLIBC_RHEL3_SCHED_SETAFFINITY
> +                cpu_set_t proc_mask;
> +                CPU_ZERO(&proc_mask);
> +                CPU_SET(0, &proc_mask);
> +
> +                sched_setaffinity (getpid(), &proc_mask);

You sure sched_setaffinity takes only two parameters. I feel the issue is not in here but in 
glibc.

Man page point to 3 parameters and /usr/include/sched.h has a wrong declaration.




Thanks,
Vadiraj







More information about the Mono-devel-list mailing list