Skip to content

Instantly share code, notes, and snippets.

View bregma's full-sized avatar
🗯️
Hacking

Stephen M. Webb bregma

🗯️
Hacking
  • 45.065192, -76.224834
View GitHub Profile
@bregma
bregma / self-socket.py
Created August 16, 2016 01:22
Using the self-pipe trick in Python3
#!/usr/bin/python3
#
# Investigate the use of the self-pipe trick from Python
#
import logging
import os
import selectors
import signal
import struct