Tag: subprocess

Spawning a process without main module

Using the spawn or forkserver start method without importing the main module might lead to unexpected behavior (for example, it might cause a RuntimeError).

Outdated subprocess module API

Using outdated multiprocessing API calls and parameters is not recommended.

OS command injection

Constructing operating system or shell commands with unsanitized user input can lead to inadvertently running malicious code.

Garbage collection prevention in multiprocessing

Passing a parent process object in a child process can prevent its garbage collection.

Deadlocks caused by improper multiprocessing API usage

Improper multiprocessing API usage with wrong parameters might lead to deadlocks.