added socket close when exiting. added pkill to users pid to clear /dev/shm. added exit post program to kill with pkill again due to atexit handler not responding to signals from outside python
This commit is contained in:
parent
4652d4f02d
commit
a568b1b7a9
9
AutismBotIngame/python/exit_handler.py
Normal file
9
AutismBotIngame/python/exit_handler.py
Normal file
@ -0,0 +1,9 @@
|
||||
#!/home/autismbot1/ze_runner/venv/bin/python3
|
||||
|
||||
if __name__ == '__main__':
|
||||
import subprocess
|
||||
#deleting POSIX shared memory objects, as long as one process has them open they exist. THis is to prevent /dev/shm from being full
|
||||
#due to steam child processes.
|
||||
#even with steam turned offline might there be chromium web browsers left over from steam who still hold processes open.
|
||||
#only kind of potential issues from this is steam cloud being out of sync, which is really fucking irrelevant.
|
||||
subprocess.getoutput([f"pkill -9 -u {whoami}"])
|
Loading…
Reference in New Issue
Block a user