Re: [PATCH v2 glibc] Add pthread_getname_np and pthread_setname_np for Hurd

2024-07-14 Thread Samuel Thibault
Hello, Flavio Cruz, le jeu. 11 juil. 2024 23:37:35 +0100, a ecrit: > diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist > b/sysdeps/mach/hurd/i386/libpthread.abilist > index fa90cc65..3ea7cb41 100644 > --- a/sysdeps/mach/hurd/i386/libpthread.abilist > +++ b/sysdeps/mach/hurd/i386/libpthread.a

Re: [PATCH gnumach] Add thread_get_name RPC to get the name of a thread.

2024-07-14 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le jeu. 11 juil. 2024 23:36:39 +0100, a ecrit: > --- > include/mach/gnumach.defs | 8 > kern/thread.c | 21 + > 2 files changed, 29 insertions(+) > > diff --git a/include/mach/gnumach.defs b/include/mach/gnumach.defs > index

Re: [PATCH] server: Fix bogus port deallocation on server error

2024-07-14 Thread Flávio Cruz
On Sun, Jul 14, 2024 at 5:13 PM Samuel Thibault wrote: > Samuel Thibault, le dim. 14 juil. 2024 18:11:40 +0200, a ecrit: > > Samuel Thibault, le dim. 14 juil. 2024 18:06:22 +0200, a ecrit: > > > Samuel Thibault, le dim. 14 juil. 2024 17:42:51 +0200, a ecrit: > > > > Flavio Cruz, le dim. 14 juil.

Re: [PATCH] server: Fix bogus port deallocation on server error

2024-07-14 Thread Samuel Thibault
Samuel Thibault, le dim. 14 juil. 2024 18:11:40 +0200, a ecrit: > Samuel Thibault, le dim. 14 juil. 2024 18:06:22 +0200, a ecrit: > > Samuel Thibault, le dim. 14 juil. 2024 17:42:51 +0200, a ecrit: > > > Flavio Cruz, le dim. 14 juil. 2024 16:40:24 +0100, a ecrit: > > > > On 14.07.2024 16:37, Samuel

Re: [PATCH] server: Fix bogus port deallocation on server error

2024-07-14 Thread Samuel Thibault
Samuel Thibault, le dim. 14 juil. 2024 18:06:22 +0200, a ecrit: > Samuel Thibault, le dim. 14 juil. 2024 17:42:51 +0200, a ecrit: > > Flavio Cruz, le dim. 14 juil. 2024 16:40:24 +0100, a ecrit: > > > On 14.07.2024 16:37, Samuel Thibault wrote: > > > > For inlined port arrays, WriteExtractArg compac

Re: [PATCH] server: Fix bogus port deallocation on server error

2024-07-14 Thread Samuel Thibault
Samuel Thibault, le dim. 14 juil. 2024 17:42:51 +0200, a ecrit: > Flavio Cruz, le dim. 14 juil. 2024 16:40:24 +0100, a ecrit: > > On 14.07.2024 16:37, Samuel Thibault wrote: > > > For inlined port arrays, WriteExtractArg compacts them from a > > > mach_port_name_inlined_t array to a mach_port_t arr

Re: [PATCH] server: Fix bogus port deallocation on server error

2024-07-14 Thread Samuel Thibault
Flavio Cruz, le dim. 14 juil. 2024 16:40:24 +0100, a ecrit: > On 14.07.2024 16:37, Samuel Thibault wrote: > > For inlined port arrays, WriteExtractArg compacts them from a > > mach_port_name_inlined_t array to a mach_port_t array, reusing the > > memory area. But when the server returns an error, t

Re: [PATCH] server: Fix bogus port deallocation on server error

2024-07-14 Thread Flavio Cruz
On 14.07.2024 16:37, Samuel Thibault wrote: For inlined port arrays, WriteExtractArg compacts them from a mach_port_name_inlined_t array to a mach_port_t array, reusing the memory area. But when the server returns an error, the caller will destroy the message, and thus expects the original inline

[PATCH] server: Fix bogus port deallocation on server error

2024-07-14 Thread Samuel Thibault
For inlined port arrays, WriteExtractArg compacts them from a mach_port_name_inlined_t array to a mach_port_t array, reusing the memory area. But when the server returns an error, the caller will destroy the message, and thus expects the original inlined port arrays available. Index: mig-1.8+git20