Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1182: Fix freeze for OS X (wrong signals to subprocesses) #2911

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions ranger/core/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from io import open
from subprocess import Popen, PIPE
from time import time, sleep
import signal

try:
import chardet # pylint: disable=import-error
Expand Down Expand Up @@ -259,7 +260,7 @@ def pause(self):
pass
return
try:
self.process.send_signal(20)
self.process.send_signal(signal.SIGTSTP)
except OSError:
pass
Loadable.pause(self)
Expand All @@ -268,7 +269,7 @@ def pause(self):
def unpause(self):
if not self.finished and self.paused:
try:
self.process.send_signal(18)
self.process.send_signal(signal.SIGCONT)
except OSError:
pass
Loadable.unpause(self)
Expand Down