Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 467 Bytes

subprocess-popen-preexec-fn.md

File metadata and controls

11 lines (6 loc) · 467 Bytes

Pattern: Use of possibly unsafe preexec_fn parameter

Issue: -

Description

The preexec_fn parameter is not safe to use in the presence of threads in your application. The child process could deadlock before exec is called. If you must use it, keep it trivial and minimize the number of libraries you call into.

Further Reading