src/python/detectors/leaky_subprocess_timeout/leaky_subprocess_timeout.py [7:15]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    process = subprocess.Popen("ls -al",
                               bufsize=-1,
                               stdout=subprocess.PIPE,
                               stderr=subprocess.PIPE)
    try:
        # Noncompliant: fails to terminate the child process before
        # the timeout expires.
        outs, errs = process.communicate(timeout=15)
    except subprocess.TimeoutExpired:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/python/detectors/leaky_subprocess_timeout/leaky_subprocess_timeout.py [23:31]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    process = subprocess.Popen("ls -al",
                               bufsize=-1,
                               stdout=subprocess.PIPE,
                               stderr=subprocess.PIPE)
    try:
        # Compliant: makes sure to terminate the child process when
        # the timeout expires.
        outs, errs = process.communicate(timeout=15)
    except subprocess.TimeoutExpired:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



