Skip to content

Instantly share code, notes, and snippets.

Last active March 30, 2018 06:10
What would you like to do?
# matthew ragan |
import os
import signal
# first we need to find our process ID
# which we can grab from the dictionary
# we put into storage
pid = parent().fetch('other_app')['app_id']
# next we can kill this process based
# only on its process id
os.kill(pid, signal.SIGTERM)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment