Re: [Twisted-Python] Forking after starting AsyncioSelectorReactor: Supported?

2018-08-27 Thread Tim Allen
On Mon, Aug 27, 2018 at 09:12:57PM -0700, David Foster wrote: > So my question is, does Twisted support being forked after starting a > reactor or not? I haven't used Twisted with the AsyncioSelectorReactor on macOS myself, but the `asyncio` docs suggest[1] that the default macOS event loop uses t

[Twisted-Python] Forking after starting AsyncioSelectorReactor: Supported?

2018-08-27 Thread David Foster
Hi Twisted list! I have a library that is attempting to start an AsyncioSelectorReactor, fork the process, and then open a network socket on macOS. When the network socket is opened, Twisted throws an [Errno 9] "Bad file descriptor" exception at me. I get no such exception on Ubuntu. If I ch

Re: [Twisted-Python] Using twistd with -c option causes permission error

2018-08-27 Thread Maarten ter Huurne
On Tuesday, August 28, 2018 2:10:22 AM CEST Richard Shea wrote: > I'm trying to use the -c option of twistd like this : > > twistd web --wsgi bar.app -c foo.cer -k privkey.pem --https=4433 > > I'm pointing it at a cert with perms like this "-rw-r--r-- 1 root root" but > twistd complains about a

[Twisted-Python] Using twistd with -c option causes permission error

2018-08-27 Thread Richard Shea
I'm trying to use the -c option of twistd like this : twistd web --wsgi bar.app -c foo.cer -k privkey.pem --https=4433 I'm pointing it at a cert with perms like this "-rw-r--r-- 1 root root" but twistd complains about a permission error . I'm puzzled ... surely twistd only needs to read that