Re: [GOLDSTAR][PLUSHHIPPO] Re: [PATCH v3 2/3] Cygwin: signal: Fix a race issue on modifying _pinfo::process_state

2025-03-08 Thread Takashi Yano
On Sat, 08 Mar 2025 15:08:58 -0500 Andrew Schulman wrote: > > >> I think Takashi-san must be about due another gold star, as he's been > > >> doing > > >> some sterling work recently, fixing complex and difficult to reproduce > > >> bugs! > > > > > > Absolutely! Yesterday I was even mulling ove

[PATCH] Cygwin: signal: sigaction should ignore SIGKILL & SIGSTOP sliently

2025-03-08 Thread Yuyi Wang
The current behavior returns EINVAL on these 2 signals, which is different from the requirement of POSIX. In addition, it makes posix_spawn fail to set POSIX_SPAWN_SETSIGDEF. In newlib/libc/posix/posix_spawn.c:200, it tries to set for all signals including SIGKILL & SIGSTOP, and sigaction should

Re: [GOLDSTAR][PLUSHHIPPO] Re: [PATCH v3 2/3] Cygwin: signal: Fix a race issue on modifying _pinfo::process_state

2025-03-08 Thread Andrew Schulman
> >> I think Takashi-san must be about due another gold star, as he's been doing > >> some sterling work recently, fixing complex and difficult to reproduce > >> bugs! > > > > Absolutely! Yesterday I was even mulling over a pink plush hippo, but > > Takashi already has one over his fireplace and

Re: [GOLDSTAR][PLUSHHIPPO] Re: [PATCH v3 2/3] Cygwin: signal: Fix a race issue on modifying _pinfo::process_state

2025-03-08 Thread Marco Atzeri
On 06/03/2025 19:55, Corinna Vinschen wrote: On Mar 6 14:55, Jon Turney wrote: On 03/03/2025 18:53, Corinna Vinschen wrote: On Mar 3 23:39, Takashi Yano wrote: On Mon, 3 Mar 2025 14:01:08 +0100 Corinna Vinschen wrote: Great. Feel free to push the patch without sending another patch subm

[PATCH] Cygwin: sched_setaffinity: fix EACCES if pid of other process is used

2025-03-08 Thread Christian Franke
This fixes: $ taskset -p 0x1 1234 pid 1234's current affinity mask: fff taskset: failed to set pid 1234's affinity: Permission denied Perhaps older Windows versions were more relaxed if PROCESS_SET_INFORMATION is granted. -- Regards, Christian From 0275a36723dd4552a26880e4ac8ba9b6dc41b17