class_docstr: This class represents a process running in a pseudoterminal.
  
  The main constructor is the :meth:`spawn` classmethod.
docstr: Send the given signal to the child application.
  
  In keeping with UNIX tradition it has a misleading name. It does not
  necessarily kill the child unless you send the right signal. See the
  :mod:`signal` module for constants representing signal numbers.
docstr_tok: ["Send","the","given","signal","to","the","child","application",".","In","keeping","with","UNIX","tradition","it","has","a","misleading","name",".","It","does","not","necessarily","kill","the","child","unless","you","send","the","right","signal",".","See","the",":","mod",":","`","signal","`","module","for","constants","representing","signal","numbers","."]
code: def kill(self, sig):
      """Send the given signal to the child application.
  
      In keeping with UNIX tradition it has a misleading name. It does not
      necessarily kill the child unless you send the right signal. See the
      :mod:`signal` module for constants representing signal numbers.
      """
  
      # Same as os.kill, but the pid is given for you.
      if self.isalive():
          os.kill(self.pid, sig)
  
imports: import codecs
  import errno
  import fcntl
  import io
  import os
  import pty
  import resource
  import signal
  import struct
  import sys
  import termios
  import time
  from pty import STDIN_FILENO, CHILD
  from .util import which, PtyProcessError
label_desc: Use image node_id 25 for calling the PtyProcess obj's underlying member method code with example usage: obj.kill(sig) without return types