profiling a dameon

Hi,
Starting a program (with profiling infos) in background doesn’t produce
a gmon.out.
I guess it’s because ‘&’ forget cwd.
Is there any solution?

Thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Hi,
Starting a program (with profiling infos) in background doesn’t produce
a gmon.out.
I guess it’s because ‘&’ forget cwd.
Is there any solution?

Actually, it could be due to it changing cwd to /, so you will need to have
perms to write files in that location.

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Hi Chris,
stupid!!! I didn’t call exit() on SIGTERM.
Sorry,
Alain.
Chris McKillop a écrit:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:


Hi,
Starting a program (with profiling infos) in background doesn’t produce
a gmon.out.
I guess it’s because ‘&’ forget cwd.
Is there any solution?




Actually, it could be due to it changing cwd to /, so you will need to have
perms to write files in that location.

chris
\