]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Use VALGRIND env var to detect valgrind
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 12 Jan 2017 11:55:57 +0000 (11:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 12 Jan 2017 11:55:57 +0000 (11:55 +0000)
src/rspamd.c

index 9dd269045a285ad18aebde3581ee6259bdef1d75..a6142614bfcf3b2a779ffe13fb892a3e259e14a7 100644 (file)
@@ -1363,7 +1363,7 @@ main (gint argc, gchar **argv, gchar **env)
                close (control_fd);
        }
 
-       if (getenv ("G_SLICE") != NULL) {
+       if (getenv ("VALGRIND") != NULL) {
                /* Special case if we are likely running with valgrind */
                term_attempts = TERMINATION_ATTEMPTS * 10;
        }