Bug 4165

Summary: /bin/bash turns out to be thunderbird's shell
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 1632, 3401    

Description Andrew Cagney 2007-03-06 22:16:29 UTC
In the process picker, the process name is shown as /bin/bash | bash, but in the
monitor window the same process appears as "mozilla".  Confusing.

PS shows:

$ ps auxw | grep 2504
cagney    2504  0.0  0.1   4396  1104 ?        S    11:35   0:00 /bin/sh
/usr/lib/thunderbird-1.5.0.10/thunderbird
Comment 1 Sami Wagiaalla 2007-03-14 17:28:09 UTC
one name was coming from argv[0], and the other from the file name of the file
pointed to by /proc/{pid}/exe. Now both use the exe.

2007-03-14  Sami Wagiaalla  <swagiaal@redhat.com>

        * druid/CreateFryskSessionDruid.java: Initialized initialSessionName.

2007-03-14  Sami Wagiaalla  <swagiaal@redhat.com>

        * SessionProcDataModel.java: used guiProc.getExecutablename() instead
        of proc.getCommand() for initializing process name. Fix for bz #4165.

Comment 2 Andrew Cagney 2007-03-15 17:38:46 UTC
Where did the "mozila" name come from?  Having both visible in the
process-picker will help with correct process selection.