docstr: Wait for the subprocess to finish.
  
  Returns the exit code.
docstr_tok: ["Wait","for","the","subprocess","to","finish",".","Returns","the","exit","code","."]
code: def wait(self):
      """Wait for the subprocess to finish.
  
      Returns the exit code.
      """
      status = self.proc.wait()
      if status >= 0:
          self.exitstatus = status
          self.signalstatus = None
      else:
          self.exitstatus = None
          self.signalstatus = -status
      self.terminated = True
      return status
  
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 8 for calling the PopenSpawn obj's underlying member method code with example usage: obj.wait() and returns: status