On Mon, Jul 14, 2014 at 4:25 AM, Gustav Fransson Nyvell <[email protected]> wrote:
> I'm looking at 5.5-current. I'm forking inside a lib and I want to change > the forks cmd or argv[0]. I mean, what you see as "command" in ps or top. > I've looked at setproctitle. There are two different things that ps will display with a title "command": the "args" format and the "ucomm" format. The former is used by "ps -u" and "ps -l" and can be modified by setproctitle(). The latter is the final path component of the argv[0] passed to execve and can only be modified by exec. > I've gotten a dozen questions why I'm doing this and the reason is X runs > my lib or a program that runs my lib and thus gets fork, which it can't > handle. I think this is because it has the same command name (probably not.) > "Thus gets fork"? What does that mean? What is the actual error that occurs? Philip Guenther
