Skip to content

Commit

Permalink
Fix parent process watcher thread (#416)
Browse files Browse the repository at this point in the history
* Fix parent process watcher thread

* timer
  • Loading branch information
JiahuiJiang authored and gatesn committed Sep 6, 2018
1 parent a30b5bc commit 249f715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyls/python_ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def watch_parent_process(pid):
log.info("parent process %s is not alive", pid)
self.m_exit()
log.debug("parent process %s is still alive", pid)
threading.Timer(PARENT_PROCESS_WATCH_INTERVAL, watch_parent_process(pid)).start()
threading.Timer(PARENT_PROCESS_WATCH_INTERVAL, watch_parent_process, args=[pid]).start()

watching_thread = threading.Thread(target=watch_parent_process, args=[processId])
watching_thread = threading.Thread(target=watch_parent_process, args=(processId,))
watching_thread.daemon = True
watching_thread.start()

Expand Down

0 comments on commit 249f715

Please sign in to comment.