docstr: Sends a Unix signal to the subprocess.
  
  Use constants from the :mod:`signal` module to specify which signal.
docstr_tok: ["Sends","a","Unix","signal","to","the","subprocess",".","Use","constants","from","the",":","mod",":","`","signal","`","module","to","specify","which","signal","."]
code: def kill(self, sig):
      """Sends a Unix signal to the subprocess.
  
      Use constants from the :mod:`signal` module to specify which signal.
      """
      if sys.platform == "win32":
          if sig in [signal.SIGINT, signal.CTRL_C_EVENT]:
              sig = signal.CTRL_C_EVENT
          elif sig in [signal.SIGBREAK, signal.CTRL_BREAK_EVENT]:
              sig = signal.CTRL_BREAK_EVENT
          else:
              sig = signal.SIGTERM
  
      os.kill(self.proc.pid, sig)
  
imports: import os
  import threading
  import subprocess
  import sys
  import time
  import signal
  import shlex
  from .spawnbase import SpawnBase, PY3
  from .exceptions import EOF
  from .utils import string_types
label_desc: Use image node_id 9 for calling the PopenSpawn obj's underlying member method code with example usage: obj.kill(sig) without return types