diff --git a/kadmin/kadm_conn.c b/kadmin/kadm_conn.c index e959d0362..58aceb8e1 100644 --- a/kadmin/kadm_conn.c +++ b/kadmin/kadm_conn.c @@ -189,7 +189,8 @@ wait_for_connection(krb5_context contextp, pgrp = getpid(); - if(setpgid(0, pgrp) < 0) + /* systemd may cause setpgid to fail with EPERM */ + if(setpgid(0, pgrp) < 0 && errno != EPERM) err(1, "setpgid"); signal(SIGTERM, terminate);