Linux process name always overwritten with "_main_"
Bug #1397971 reported by
Ralph Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
High
|
Ralph Lange |
Bug Description
Reported by Anze Zagar <email address hidden>:
The 'COMMAND NAME' column shown by commands like top, ps... should normally correspond to the actual executable name.
However, for all executables linked against EPICS 3.15 it gets changed to '_main_'.
This causes quite some confusion because we have many processes linked against CA library (IOCs as well as clients) and 'top' shows all of them as '_main_' which makes them very difficult to tell apart.
Also `ps -C <cmd>` for finding the process by executable name, doesn't work because of this.
Related branches
Changed in epics-base: | |
status: | In Progress → Fix Committed |
Changed in epics-base: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is a side effect of a feature originally proposed by Klemen Zagar.
When looking at the threads of an IOC, all threads were reported under the main executable's name, so they could not be distinguished. Klemen proposed that EPICS sets the command name of each thread to its EPICS thread name.
Obviously, all executables being called "_main_" is an unwanted side effect for clients.