proj: Add pid to msg()

This commit is contained in:
lorenz.stechauner committed 2025-04-14 17:05:40 +02:00
1 parent a738e3ee2b
commit e851f5b90d
5 files changed
+16 -6

No files matched your search

+5 -1
View File
@@ -21,7 +21,11 @@ def main() -> None:
t1 = threading.Thread(target=socket_thread, args=(socket_name,))
t1.daemon = True
t1.start()
subprocess.run(extra, env={'LD_PRELOAD': os.getcwd() + '/../../intercept/intercept.so', 'INTERCEPT': 'unix:' + socket_name})
subprocess.run(extra, env={
'LD_PRELOAD': os.getcwd() + '/../../intercept/intercept.so',
'INTERCEPT': 'unix:' + socket_name,
'INTERCEPT_FUNCTIONS': ','.join(['malloc', 'calloc', 'realloc', 'reallocarray', 'free']),
})
if __name__ == '__main__':