Re: Gettask

=?ISO-8859-1?Q? (pommnitz@darmstadt.gmd.de)
Sat, 14 Feb 1998 16:19:06 +0100


Your implementation has an error:
The task_pos variable lives in kernel memory and
is those shared by all processes. If two processes call
getfirsttaskid, the result for subsequent calls to
getnexttaskid will be somewhat random.

You have to place the task_pos into process specific
memory, i.e. the task structure.

Regards
Joerg

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu