lkml.org 
[lkml]   [1996]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject"Bug" in 2.0.x/2.1.x
Date
From

Hi,

In kernel/sched.c in Linux 2.0.x/2.1.x I see this:

asmlinkage int sys_sched_rr_get_interval(pid_t pid, struct timespec *interval)
{
struct timespec t;

t.tv_sec = 0;
t.tv_nsec = 0; /* <-- Linus, please fill correct value in here */
return -ENOSYS; /* and then delete this line. Thanks! */
return copy_to_user(interval, &t, sizeof(struct timespec)) ? -EFAULT : 0;
}

See the problem? ;) I can't supply a patch because I don't know the length
of a time slice in Linux (it is architecture dependent, isn't it?) and I don't
have a POSIX.4 copy at hand.

-Andi

--
|andi@mlm.extern.lrz-muenchen.de Nonsense is better than no sense at all.
| -NoMeansNo,0-1=2

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.052 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site