Fix handling of child processes on linux

* We need to ensure we remodify LD_LIBRARY_PATH and LD_PRELOAD before fork/exec
  if the application (say bash running a script) has overwritten them. We also
  don't want these to be accidentally inherited into children if we're not
  hooking children - the same for the vulkan env var, which can't be unset
  immediately on process injection like the others because it needs to hang
  around indefinitely.
This commit is contained in:
baldurk
2021-03-22 11:16:14 +00:00
parent 83f99b6e56
commit 287da369fc
7 changed files with 322 additions and 73 deletions
+1
View File
@@ -165,6 +165,7 @@ enum
};
#define RENDERDOC_VULKAN_LAYER_NAME "VK_LAYER_RENDERDOC_Capture"
#define RENDERDOC_VULKAN_LAYER_VAR "ENABLE_VULKAN_RENDERDOC_CAPTURE"
#define RENDERDOC_ANDROID_LIBRARY "libVkLayer_GLES_RenderDoc.so"