On Thu, 2012-08-16 at 18:38 +0200, Marius Tolzmann wrote:
> ---
> src/core/main.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/core/main.c b/src/core/main.c
> index cdd77c1..8973637 100644
> --- a/src/core/main.c
> +++ b/src/core/main.c
> @@ -1511,8 +1511,8 @@ int main(int argc, char *argv[]) {
> /* Become reaper of our children */
> r = prctl(PR_SET_CHILD_SUBREAPER, 1);
> if (r < 0)
> - log_error("Failed to prctl(PR_SET_CHILD_SUBREAPER):
> %s", strerror(-r));
> - if (r == -EINVAL)
> + log_error("Failed to prctl(PR_SET_CHILD_SUBREAPER):
> %m");
> + if (r < 0 && errno == EINVAL)
> log_error("Perhaps the kernel version is too old (<
> 3.4?)");
> }
>
PR_SET_CHILD_SUBREAPER made it into 3.3, so this should be say (<3.3?)
--
-Shawn Landden
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel