commit | 544ee752cd38febfa3aa3798b4dfb6fabd13846b | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sat Jul 30 08:19:31 2011 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sat Jul 30 08:19:31 2011 -0400 |
tree | 5367d3f9653484d0498279b87630e8ddb7e084ed | |
parent | dba68bf98fc708cea4c478278c889fc7ad802b00 [diff] |
fix some bugs in setxid and update setrlimit to use __synccall setrlimit is supposed to be per-process, not per-thread, but again linux gets it wrong. work around this in userspace. not only is it needed for correctness; setxid also depends on the resource limits for all threads being the same to avoid situations where temporarily unlimiting the limit succeeds in some threads but fails in others.