[lkml]   [2002]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: problems with changing UID/GID
On Tue, Aug 27, 2002 at 01:08:04PM -0600, Thunder from the hill wrote:

And how do you protect a caller from having to wait for the lock?

You don't. If they have to wait, then they wait.

You'd need a lock count here, where you can only change the
credentials when the count is zero. But when will that ever be?

It depends... for most non-threaded applications, immediately... for
threaded applications with lots of (day) disk IO, it could be

And btw, the count bumping/downing does cost.

Almost immeasurable. [sg]et[eu]id doesn't get called that often.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.138 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site