code: def close_all_on_exec():
      """Mark every file handle above 2 with CLOEXEC
  
      We don't want child processes inheret anything
      except for STDIN / STDOUT / STDERR. This should
      make it so in a horribly brute-force way.
      """
      import fcntl
  
      try:
          maxfd = os.sysconf("SC_OPEN_MAX")
      except:
          maxfd = 256
      for fd in range(3, maxfd):
          try:
              fcntl.fcntl(fd, fcntl.FD_CLOEXEC)
          except:
              pass
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/utilities/analysis.py
imports: import os
  import sys
  import threading
  from importlib.util import find_spec
label_desc: Use image node_id 5 for calling a global function with example usage: close_all_on_exec() without return types