Re: Sending FDs over UNIX domain sockets

2025-11-15 Thread Grant Edwards via Python-list
On 2025-11-16, Pokemon Chw via Python-list wrote: > On Linux AF_UNIX + SOCK_STREAM sockets, there is a quirk in how the > kernel handles control messages with SCM_RIGHTS: > > To successfully pass file descriptors via SCM_RIGHTS, you must send > at least one byte of normal data in the same sendmsg

Re: zipapp: add compression (method), compresslevel options from Zipfile

2025-11-15 Thread Abdur-Rahmaan Janhangeer via Python-list
You have some demo code for it? Kind Regards, Abdur-Rahmaan Janhangeer about | blog github Mauritius On Mon, 10 Nov 2025, 07:18 Mingye Wang via Python-list, < [email protected]>

Sending FDs over UNIX domain sockets

2025-11-15 Thread Fabiano Sidler
Hi folks! I'm trying to pass some file descriptors over a UNIX domain socket. But either I'm doing something wrong, or there is a bug in Python. Here's my code: === testclient start === #!/usr/bin/env python3 from socket import socket, AF_UNIX, SOCK_STREAM, send_fds import sys path = '/tmp/te