Skip to content

Commit

Permalink
Fix TIS/TSM in logs
Browse files Browse the repository at this point in the history
Silences the "is calling TIS/TSM in non-main thread environment"
messages in the log when running a MacOS server as it is a red herring
that causes a lot of issues to be filed.
  • Loading branch information
simons-public committed May 6, 2020
1 parent 675a17d commit 30c7749
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cmd/barriers/barriers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ main(int argc, char** argv)
// record window instance for tray icon, etc
ArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));
#endif

#ifdef __APPLE__
/* Silence "is calling TIS/TSM in non-main thread environment" as it is a red
herring that causes a lot of issues to be filed for the MacOS client/server.
*/
setenv("OS_ACTIVITY_DT_MODE", "NO", true);
#endif

Arch arch;
arch.init();
Expand Down

0 comments on commit 30c7749

Please sign in to comment.