Skip to content

Commit eee73d1

Browse files
jeffhostetlergitster
authored andcommitted
trace2:data: add editor/pager child classification
Add trace2 process classification for editor and pager child processes. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 942b274 commit eee73d1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

editor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static int launch_specified_editor(const char *editor, const char *path,
7878
p.argv = args;
7979
p.env = env;
8080
p.use_shell = 1;
81+
p.trace2_child_class = "editor";
8182
if (start_command(&p) < 0)
8283
return error("unable to start editor '%s'", editor);
8384

pager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ void prepare_pager_args(struct child_process *pager_process, const char *pager)
100100
argv_array_push(&pager_process->args, pager);
101101
pager_process->use_shell = 1;
102102
setup_pager_env(&pager_process->env_array);
103+
pager_process->trace2_child_class = "pager";
103104
}
104105

105106
void setup_pager(void)

0 commit comments

Comments
 (0)