It is not the answer I wanted , I am saking in term of coding .
2013/5/8 Jun Hu <jhu_com@xxxxxxx>
you can get it by "tty" command, like the following:
junwork:/proc/self/task/1874 # tty
/dev/pts/0
-
----Original Message-----
--
---------------------------------------------------------
Jun Hu
DSE In Suse China.
----------------------------------------------------------
To: kernelnewbies@xxxxxxxxxxxxxxxxx
Subject: current tty
Date: Wed, 8 May 2013 12:21:32 +0800
_______________________________________________
Hi:
As I know .the /dev/tty is the current task's tty , which is stored
to current->tty ,
My question is when does this value is assgined to current->tty ?
Thanks!
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies