]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: Remove "old kernel" warning if PR_SET_CHILD_SUBREAPER fails 76/head
authorCristian Rodríguez <crrodriguez@opensuse.org>
Fri, 5 Jun 2015 06:39:02 +0000 (03:39 -0300)
committerCristian Rodríguez <crrodriguez@opensuse.org>
Fri, 5 Jun 2015 07:06:39 +0000 (04:06 -0300)
This made sense when systemd ran on older kernels, nowdays not so much.

src/core/main.c

index 674e47e788ac8e64ec298cf926baf68b59893ef6..29ccff7b6357402cee012066853f056caf2b510d 100644 (file)
@@ -1606,14 +1606,10 @@ int main(int argc, char *argv[]) {
                 }
         }
 
-        if (arg_running_as == MANAGER_USER) {
+        if (arg_running_as == MANAGER_USER)
                 /* Become reaper of our children */
-                if (prctl(PR_SET_CHILD_SUBREAPER, 1) < 0) {
+                if (prctl(PR_SET_CHILD_SUBREAPER, 1) < 0)
                         log_warning_errno(errno, "Failed to make us a subreaper: %m");
-                        if (errno == EINVAL)
-                                log_info("Perhaps the kernel version is too old (< 3.4?)");
-                }
-        }
 
         if (arg_running_as == MANAGER_SYSTEM) {
                 bump_rlimit_nofile(&saved_rlimit_nofile);