LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   kernel-2.4.20 task_struct -> session (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-2-4-20-task_struct-session-729100/)

ao.yuan.young 05-28-2009 10:00 AM

kernel-2.4.20 task_struct -> session
 
There was an attribute named session in task_struct of kernel-2.4.20, but it was removed in kernel-2.6.27.

Could anyone explain the function of attribute session, and why it was removed ??

ao.yuan.young 05-29-2009 09:04 AM

Quote:

Originally Posted by ao.yuan.young (Post 3555485)
There was an attribute named session in task_struct of kernel-2.4.20, but it was removed in kernel-2.6.27.

Could anyone explain the function of attribute session, and why it was removed ??

Now, the attribute session is not an attribute of struct task_struct directly. But it is still an attribute of struct task_struct, for it is wrappd by struct signal_struct. You can set its value by calling set_task_session defined in kernel-2.6.20/include/linux/sched.h.


All times are GMT -5. The time now is 10:14 AM.