URL:
  <http://savannah.nongnu.org/bugs/?19856>

                 Summary: cvs compiled with pam loose it's nice (priority)
value.
                 Project: Concurrent Versions System
            Submitted by: None
            Submitted on: Friday 05/11/2007 at 14:06 UTC
                Category: Bug Fix (patch attached)
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
           Fixed Release: None
   Fixed Feature Release: None

    _______________________________________________________

Details:

Hello,

I am using cvs 1.12.13.1 in mode pserver, compiled with pam because my system
authenticate on ldap.
For some clients, i run cvs with a high nice value (lower priority).

I have noticed that cvs "forget" it's nice value after launching.
after debugging i have found that it happens in :
file server.c, function switch_to_user() the call to 
pam_open_session() reset the nice value !

i have tested with 1.12.13 and 1.12.13.1, i guess the problem does not happen
with 1.11.x since it is not pam aware !

I don't know pam, maybe it is possible to prevent this behavior,
but i have find that getting the priority before the call to 
pam_open_session() and re-setting it after,  fix the problem.

you will find a patch for server.c attached.

Best Regards



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Friday 05/11/2007 at 14:06 UTC  Name: server.c.patch  Size: 594B   By:
None
patch to server.c, to remember nice value
<http://savannah.nongnu.org/bugs/download.php?file_id=12749>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19856>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
Bug-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/bug-cvs

Reply via email to