From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Native rts not working on linux (glibc)
Date: 1998/11/17
Date: 1998-11-17T00:00:00+00:00 [thread overview]
Message-ID: <x7vaf1q3j4q.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 72q5m8$6ih$1@nyheter.chalmers.se
d96andgi@dtek.chalmers.se (Anders Gidenstam) writes:
> In article <x7vaf1sr9ty.fsf@pogner.demon.co.uk>,
> Simon Wright <simon@pogner.demon.co.uk> writes:
> >Tasking programs will run fine on Linux with GNAT. If they don't there
> >is something wrong!
> >
> >As far as I can tell the code that does this is in Set_Priority in s-taprop.adb:
> >
> > Result := pthread_setschedparam (T.LL.Thread, SCHED_FIFO, Param'Access);
> > pragma Assert (Result = 0 or else Result = EPERM);
> >
> >If you are root, you get the priority (Result = 0)
> >If not, the request fails quietly (Result = EPERM)
> >... or something terrible has occurred
>
> Well, I've found the problem my s-taprop.adb looks like tihs:
>
> Result := pthread_setschedparam (T.LL.Thread, SCHED_FIFO, Param'Access);
> pragma Assert (Result = 0
> or else Shutdown ("GNULLI failure---Set_Priority"));
>
> Not very strange that my programs didn't run...(when I wasn't root)...
> Might it be possible to remove the offending Shutdown and just ignore
> that the call failed?
Oh dear, I think the code I posted was from a not-yet-released GNAT
version. Now you show me the code you see, I seem to remember finding
the same code last time I looked and being puzzled that tasking was
working!
If you are getting the GNULLI message indicated then it certainly
would seem worth trying this change.
next prev parent reply other threads:[~1998-11-17 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-28 0:00 Native rts not working on linux (glibc) Anders Gidenstam
1998-10-29 0:00 ` Sune Falck
1998-10-29 0:00 ` Anders Gidenstam
1998-10-29 0:00 ` Anders Gidenstam
1998-11-12 0:00 ` drees
1998-11-12 0:00 ` Anders Gidenstam
1998-11-12 0:00 ` dewarr
1998-11-13 0:00 ` Anders Gidenstam
1998-11-15 0:00 ` Simon Wright
1998-11-16 0:00 ` Anders Gidenstam
1998-11-16 0:00 ` Anders Gidenstam
1998-11-17 0:00 ` Simon Wright [this message]
1998-11-18 0:00 ` Anders Gidenstam
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox