Closed vebjornjr closed 2 years ago
Your subprocess is running as root, your parent process is running as your own user, so it doesn't have permission to kill your child process.
Run your parent process with sudo instead to avoid this.
I'm not so keen on running my whole program as sudo.
But I found a workaround, which was to allow tcpdump
to run without sudo.
Posting it here for others that may be interested: https://askubuntu.com/questions/530920/tcpdump-permissions-problem
Let's close this, nothing reproc can do here really
Hello. Thank you for this library.
I'm trying to use your library to run
tcpdump
, which requiressudo
. It seems like I'm able to run it just fine, but not able to stop it. What am I doing wrong? Thank you.Code:
Output: