aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r--src/im-sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index d7481f34..271616d1 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -1079,6 +1079,9 @@ int create_sandbox(struct index_args *iargs, int n_proc, char *prefix,
return 0;
}
+ setsid();
+ setpgid(0, 0);
+
sb->n_processed_last_stats = 0;
sb->t_last_stats = get_monotonic_seconds();
sb->n_proc = n_proc;