attwad / python-osc

Open Sound Control server and client in pure python
The Unlicense
514 stars 106 forks source link

cann't close osc server/py script #159

Open high-solutions opened 1 year ago

high-solutions commented 1 year ago

i can't seem to stop the threading server from within python.

I would like to make a osc command to stop the python script/receveing threading server but the server keeps running and responding

tried: exit() sys.exit() subprocess.run(pkill "the python script")

only ctrl+c works if the script runs in the foreground, but i want to stop it with osc from wherever, also if it runs on the background