|
|
|
Re: task struct and the #! operator | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi, Have a look at binfmt_script.c [1] $) [1] http://lxr.free-electrons.com/source/fs/binfmt_script.c Best wishes Vladimir Murzin On 5/31/12, Ranjan Sinha <rnjn.sinha@xxxxxxxxx> wrote: > Hi, > > I am trying to understand process creation and associated > bookkeeping.I am currently trying to understand how interpreted > scripts (the shebang operator) are executed. > > It was surprising to see that the comm member of task_struct (accessed > through get_task_comm) is actually set to the name of the script > though /proc/pid/exe correctly points to the invoked interpreter. Does > anybody know where the necessary magic happen and is it possible to > get the name of invoked interpreter through any means inside the > kernel? > > Thanks in advance, > Ranjan > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@xxxxxxxxxxxxxxxxx > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
[Newbies FAQ] [Linux Kernel Development] [IETF Annouce] [Git] [Networking] [Security] [Bugtraq] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux Networking] [Linux RAID] [Linux SCSI] [Linux ACPI]
![]() |
![]() |