Re: Eventfd with epoll BlockingIOError

2021-11-27 Thread Barry Scott
> On 25 Nov 2021, at 22:29, jenk...@tutanota.com wrote: > > Thanks very much for your reply. > > I am now getting a single event returned in Python, but it's not the right > event, as I'll explain below. > > I rearranged the Python code based on your comments: > > #!/usr/bin/python3 > impo

Re: Eventfd with epoll BlockingIOError

2021-11-25 Thread Jen via Python-list
Thanks very much for your reply.  I am now getting a single event returned in Python, but it's not the right event, as I'll explain below.  I rearranged the Python code based on your comments: #!/usr/bin/python3 import sys import os import select print("Inside Python") event_fd = int(sys.arg

Re: Eventfd with epoll BlockingIOError

2021-11-25 Thread Barry Scott
> On 24 Nov 2021, at 22:42, Jen via Python-list wrote: > > I have a C program that uses fork-execv to run Python 3.10 in a child > process, and I am using eventfd with epoll for IPC between them. The eventfd > file descriptor is created in C and passed to Python through execv. Once the > P

Re: Eventfd with epoll BlockingIOError

2021-11-25 Thread Barry
> On 24 Nov 2021, at 23:09, Jen via Python-list wrote: > > I have a C program that uses fork-execv to run Python 3.10 in a child > process, and I am using eventfd with epoll for IPC between them. The eventfd > file descriptor is created in C and passed to Python through execv. Once the >

Eventfd with epoll BlockingIOError

2021-11-24 Thread Jen via Python-list
I have a C program that uses fork-execv to run Python 3.10 in a child process, and I am using eventfd with epoll for IPC between them.  The eventfd file descriptor is created in C and passed to Python through execv.  Once the Python child process starts I print the file descriptor to verify that