[TSAN] main: Stop calling g_set_prgname()

It turns out this is basically racy with the presence of other
threads.  It was really cosmetic so let's stop doing it and make
`-fsanitize=thread` happy.

Closes: #582
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-11-17 11:39:27 -05:00 committed by Atomic Bot
parent b5c4e6d99a
commit f0519e541f
1 changed files with 0 additions and 5 deletions

View File

@ -125,7 +125,6 @@ ostree_run (int argc,
GError *error = NULL; GError *error = NULL;
GCancellable *cancellable = NULL; GCancellable *cancellable = NULL;
const char *command_name = NULL; const char *command_name = NULL;
g_autofree char *prgname = NULL;
gboolean success = FALSE; gboolean success = FALSE;
int in, out; int in, out;
@ -202,10 +201,6 @@ ostree_run (int argc,
goto out; goto out;
} }
prgname = g_strdup_printf ("%s %s", g_get_prgname (), command_name);
g_set_prgname (prgname);
if (!command->fn (argc, argv, cancellable, &error)) if (!command->fn (argc, argv, cancellable, &error))
goto out; goto out;