https://bugs.kde.org/show_bug.cgi?id=432508

--- Comment #3 from Tom Hughes <t...@compton.nu> ---
Right to basically what valgrind does is that it increases the soft limit by
the number of descriptors it wants to reserve for itself, and then lowers the
emulated soft and hard limits to the soft limit.

So you should find that your first getrlimit actually reports a hard limit of
1024 as well as a soft limit of 1024 and that your setrlimit fails.

So basically this is one place where the emulated environment is not quite the
same as the host environment, but if you pay attention to system call results
you should get results which match the emulated environment.

If you need more descriptors when running under valgrind then you will need to
raise the soft limit before starting it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to