Skip to content

Instantly share code, notes, and snippets.

@josiahcarlson
josiahcarlson / pass_socket.py
Created September 14, 2012 18:05
An example of passing a socket between processes using Python's multiprocessing library
'''pass_socket.py
Written September 14, 2012
Released into the public domain.
Works on Python 2.6, 2.7, and may need minor changes for 3+.
'''
import multiprocessing