]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: If execv() fails with ENOMEM, mention the vsz_limit setting.
authorTimo Sirainen <tss@iki.fi>
Mon, 24 Aug 2009 17:15:34 +0000 (13:15 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 24 Aug 2009 17:15:34 +0000 (13:15 -0400)
--HG--
branch : HEAD

src/master/main.c

index a4cb5a5407d88fadec79d82c93da21a6be4c92b6..df34a4139cc042827df8282b42a1b4947c5000d7 100644 (file)
@@ -77,8 +77,9 @@ void process_exec(const char *cmd, const char *extra_args[])
        /* prefix with dovecot/ */
        argv[0] = t_strconcat(PACKAGE"/", argv[0], NULL);
 
-       execv(executable, (char **)argv);
-       i_fatal_status(FATAL_EXEC, "execv(%s) failed: %m", executable);
+       (void)execv(executable, (char **)argv);
+       i_fatal_status(errno == ENOMEM ? FATAL_OUTOFMEM : FATAL_EXEC,
+                      "execv(%s) failed: %m", executable);
 }
 
 int get_uidgid(const char *user, uid_t *uid_r, gid_t *gid_r,