mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
tools/sysprof-agent: set cwd to . unless --directory specified
This commit is contained in:
@ -541,6 +541,8 @@ main (int argc,
|
|||||||
|
|
||||||
if (directory != NULL)
|
if (directory != NULL)
|
||||||
sysprof_profiler_set_spawn_cwd (profiler, directory);
|
sysprof_profiler_set_spawn_cwd (profiler, directory);
|
||||||
|
else
|
||||||
|
sysprof_profiler_set_spawn_cwd (profiler, ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now open the writer for our session */
|
/* Now open the writer for our session */
|
||||||
|
|||||||
Reference in New Issue
Block a user