mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* support for limit of open file descriptors for a child process
@ 2006-09-14 15:21 Ram Gupta
  2006-09-14 15:28 ` Bernd Petrovitsch
  0 siblings, 1 reply; 2+ messages in thread
From: Ram Gupta @ 2006-09-14 15:21 UTC (permalink / raw)
  To: linux mailing-list

Hi,
    I came across a problem regarding the issue of number of open
file descriptors.The scenario is as below.
 I have a controlling process which launches other different
apllication including third party ones. It also enforces various
resource limits including number of open file descriptors. This
process forks & reads the resource limits from a configuration files,
applies the resource limits & then execs for the corresponding
application. The process has its own various number of open file
descriptors. If the limit of open file descriptor for the child
application is less than the number of file descriptors  of the parent
process, then the child application file can not be opened & exec
fails in this case.

I searched solution for this problem but could not find an existing
way to solve it. I thought of couple of ways to do it. One idea is to
create another flag for clone which makes it not to inherit the open
file descriptors & use clone with that flag instead of fork .The other
approach is to create a new system call & parent process can call that
system call before calling the setrlimit.

I am looking for your opinion about the better way . Further if it is helpful
 then I can submit the patch also.

Thanks in advance
regards
Ram Gupta

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-14 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14 15:21 support for limit of open file descriptors for a child process Ram Gupta
2006-09-14 15:28 ` Bernd Petrovitsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®