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

Christian Franke Christian.Franke@t-online.de
Mon Mar 10 12:47:14 GMT 2025


Corinna Vinschen wrote:
> On Mar  8 14:24, Christian Franke wrote:
>> This fixes:
>>
>> $ taskset -p 0x1 1234
>> pid 1234's current affinity mask: fffffff
>> 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
>>
> LGTM.  Btw., do you have push permissions?  From what I can tell,
> you already have an account on sourceware and it looks like you have
> push perms.  Is your .ssh key up to date?

I got push permissions to (at least) Cygwin setup repo in August 2022, 
but apparently the ssh login no longer works. The debug output shows 
that the correct (3072 RSA) pubkey is passed.


> Wouldn't you like to join our cygwin-developers IRC channel as well?
> https://cygwin.com/irc.html

Possibly, but need to refresh my knowledge first as it's been a long 
time that I used IRC - IIRC 20+ years :-)

-- 
Thanks,
Christian



More information about the Cygwin-patches mailing list