Link to home
Start Free TrialLog in
Avatar of x_terminat_or_3
x_terminat_or_3

asked on

Change forked process' name

Hi all

OS: RHEL4

Is there a way to change a forked process` name?

I have seen this behavior by a lot of daemons, and a daemon is what I'm making.

I have one main thread that listens for incoming connections, then spawns a child to deal with it. I would like the child to show up in TOP as

mydaemon serving <hostname>

Most I could find were some shady links on Google pertaining C programming.

Good luck!
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial