skyped: set FD_CLOEXEC on listening socket
commit744ba259912c5e9961ee90a8e2c0d2ba35d44821
authorMiklos Vajna <vmiklos@vmiklos.hu>
Sun, 22 Apr 2012 21:48:09 +0000 (22 23:48 +0200)
committerMiklos Vajna <vmiklos@vmiklos.hu>
Sun, 22 Apr 2012 21:48:09 +0000 (22 23:48 +0200)
tree2f04d82cedc271ddbef66d4af1311a57b8edc14d
parent36dad1e551d1e80216d04a0fa3f3064f22710633
skyped: set FD_CLOEXEC on listening socket

Skype4Py uses os.execlp() to spawn skype if it is not yet started, this leaks
our listening FD to skype process and can't get it back even if we ourself exit
meanwhile.

and we can't startup again:
error: [Errno 98] Address already in use

Patch-by: Elan Ruusamäe <glen@delfi.ee>
protocols/skype/skyped.py