-
Notifications
You must be signed in to change notification settings - Fork 146
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
Added send_signal to ProcessDescriptor #11
Conversation
@gerkey could you test it with the examples? |
Working on it now. |
@@ -47,6 +51,9 @@ class TaskDescriptor(object): | |||
def __init__(self): | |||
self.task_state = None | |||
|
|||
def send_signal(self, signal): | |||
pass | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the other subclass CoroutineDescriptor
can't implement this the base class should probably not contain this method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
+1 |
Added send_signal to ProcessDescriptor
This PR adds a
send_signal
method toProcessDescriptor
, so that a signal can be sent to a process (e.g.SIGTERM
)