Re: [PATCH v3 10/11] rlimits: implement prlimit64 syscall

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jiri Slaby
Date: Wednesday, May 26, 2010 - 5:58 am

On 05/14/2010 12:56 AM, Andrew Morton wrote:

Sorry, for the late reply, I was busy with other things.

Both
tasklist_lock -> (task_struct->sighand->siglock)
tasklist_lock -> (task_struct->alloc_lock)
are OK, since both dependencies already exist in the kernel.

This should have been in the changelogs, yes!


Sorry, I'm not sure I understand this. Could you shed some light on what
will run in the new thread?

A code such as:
main()
{
  if (!clone())
    exec("something");

  while (wait_for_message(&m)) {
     setrlimit(m);
     sleep();
  }
}
won't obviously work. Could you change it so it reflects your idea or
explain what I'm missing?

thanks,
-- 
js
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 04/11] rlimits: split sys_setrlimit, Jiri Slaby, (Mon May 10, 11:00 am)
[PATCH v3 10/11] rlimits: implement prlimit64 syscall, Jiri Slaby, (Mon May 10, 11:00 am)
Re: [PATCH v3 10/11] rlimits: implement prlimit64 syscall, Andrew Morton, (Thu May 13, 3:56 pm)
Re: [PATCH v3 10/11] rlimits: implement prlimit64 syscall, Jiri Slaby, (Wed May 26, 5:58 am)
Re: [PATCH v3 10/11] rlimits: implement prlimit64 syscall, Andrew Morton, (Wed May 26, 7:30 am)