task_struct pid in for current task does not tally ..
From: Basith Salman (basithsalman_at_mindspring.com)
Date: 01/31/04
- Previous message: fred smith: "Re: Sony Tape Drives"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <redhat-list@redhat.com> Date: Fri, 30 Jan 2004 21:32:36 -0800
Hi All,
The current->pid of the task_struct does not tall with the getpid()
for pthread_create() call.
For ex. below the getpid() in myfunc() does not tally with the
pid in the current task_struct for linux redhat 9.
It is one more that the in thread func.
ex. if getpid() below return 100 than the current->pid of the
task_struct (sched.) has a value of 101.
If this is the case than how do I get the actual thread
pid from the task_struc in ther kernel.
TIA
basithsalman@mindspring.com
main()
{
...
pthread_create(tid, myfunc, ..);
}
myfunc()
{
getpid();
}
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: fred smith: "Re: Sony Tape Drives"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|