Displaying 2 results from an estimated 2 matches for "restrict_fd_limit".
2008 May 01
1
[patch] let valgrind run on login process with GDB=1
...Thu May 01 00:59:10 2008 +0200
@@ -689,7 +689,8 @@ static pid_t create_login_process(struct
fd_limit = 16 + listen_count + ssl_listen_count +
2 * (group->set->login_process_per_connection ? 1 :
group->set->login_max_connections);
- restrict_fd_limit(fd_limit);
+ if (getenv("GDB") == NULL)
+ restrict_fd_limit(fd_limit);
/* make sure we don't leak syslog fd, but do it last so that
any errors above will be logged */
2013 Sep 21
1
Passing info from mail process to mail_filter plugin script?
...iguring out how this can
be accomplished.
Ideally, I'd like to pass another open file descriptor (opened in the IMAP
process) to the script, but I'm not sure if this is possible. Opening the
file in the IMAP main.c fails, presumably due to file descriptor limits, but I
don't see where restrict_fd_limit() is called there.
My second choice for passing this info would be in an environment variable or
argument to the mail filter script. Adding env_put() to the IMAP code doesn't
seem to get the value passed to the script, presumably because the environment
is getting cleared, but again I'm n...