Системный вызов ptrace
позволяет родительскому процессу проверять прикрепленный дочерний элемент. Например, в Linux strace
(который реализован с системным вызовом ptrace
) может проверять системные вызовы, вызванные дочерним процессом.
Когда подключенный дочерний процесс вызывает системный вызов, родительский процесс ptracing может быть уведомлен. Но как именно это происходит? Я хочу знать технические подробности этого механизма.
Спасибо заранее.