current tty
Hatte John
june.tune.sea at gmail.com
Wed May 8 05:57:00 EDT 2013
It is not the answer I wanted , I am saking in term of coding .
2013/5/8 Jun Hu <jhu_com at 163.com>
> 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 at kernelnewbies.org
> 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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130508/b3c107e3/attachment.html
More information about the Kernelnewbies
mailing list