-
When I try to track subprocesses created by spawn(), I got an empty .bin file.
Run this piece of code will produce 6 .bin files, most of them are empty.
If we change use
The .bin files will not be empty:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The So, you're definitely right that we can't trace into spawned worker processes like we do into forked ones. |
Beta Was this translation helpful? Give feedback.
The
spawn
method forks a process off, and then executes the interpreter all over again in that forked process. The files get written because we successfully trace through the fork call, but they're nearly empty because soon after the fork the process image is replaced by anexec
call.So, you're definitely right that we can't trace into spawned worker processes like we do into forked ones.