'return the CURRENT session id of the process. this differs from
self.sid in that this refects the current state of the process, where
self.sid is the session id at launch'

def get_sid(self):

    return os.getsid(self.pid)
