rapiz1 / catp

Print the output of a running process

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support for multithreaded programs

harrysarson opened this issue · comments

Hi, this is a really cool project.

Looking at the source I see a todo for multithreaded support and I was wondering about your plans for it?

I guess you would need to iterate over threads to capture syscalls from all of them.

Yes. the TODO in the source is not very accurate. I'm also thinking of multi-process programs calling fork etc. Still not sure how to handle those cases, especially when threads and processes interweave. It's worth checking how strace handles these special cases.