[Mono-dev] mono/mini/driver.c patch for RHEL3 compatability
Paolo Molaro
lupus at ximian.com
Thu Dec 20 06:44:21 EST 2007
On 12/20/07 C S Vadiraj wrote:
> > --- 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.
Older Red Hat shipped with a broken sched_setaffinity() interface.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-devel-list
mailing list