<div dir="ltr">&nbsp; It is not the answer I wanted , I am saking in term of coding .<div><br></div><div style>&nbsp;&nbsp;</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/8 Jun Hu <span dir="ltr">&lt;<a href="mailto:jhu_com@163.com" target="_blank">jhu_com@163.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">you can get it by &quot;tty&quot; command, like the following:<br>
<br>
junwork:/proc/self/task/1874 # tty<br>
/dev/pts/0<br>
<br>
<br>
-<br>
----Original Message-----<br>
--<br>
---------------------------------------------------------<br>
Jun Hu<br>
<br>
DSE &nbsp;In Suse China.<br>
----------------------------------------------------------<br>
<br>
<br>
<br>
To: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Subject: current tty<br>
Date: Wed, 8 May 2013 12:21:32 +0800<br>
<div><div class="h5"><br>
Hi£º<br>
<br>
&nbsp; &nbsp;As &nbsp;I know .the /dev/tty is the current task&#39;s tty , which is stored<br>
to current-&gt;tty ,<br>
&nbsp; &nbsp;My question is when does this value is assgined to current-&gt;tty ?<br>
<br>
<br>
Thanks!<br>
</div></div>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
</blockquote></div><br></div>