|
|
Log in / Subscribe / Register

Re: [RFC PATCH] proc, pidns: Add highpid

From:  ebiederm-aS9lmoZGLiVWk0Htik3J/w-AT-public.gmane.org (Eric W. Biederman)
To:  Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ-AT-public.gmane.org>
Subject:  Re: [RFC PATCH] proc, pidns: Add highpid
Date:  Fri, 28 Nov 2014 21:34:09 -0600
Message-ID:  <87mw7aof2m.fsf@x220.int.ebiederm.org>
Cc:  David Herrmann <dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w-AT-public.gmane.org>, linux-api-u79uwXL29TY76Z2rM5mHXA-AT-public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA-AT-public.gmane.org, Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b-AT-public.gmane.org>, systemd Mailing List <systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW-AT-public.gmane.org>, criu-GEFAQzZX7r8dnm+yROfE0A-AT-public.gmane.org, Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ-AT-public.gmane.org>, Cyrill Gorcunov <gorcunov-GEFAQzZX7r8dnm+yROfE0A-AT-public.gmane.org>
Archive‑link:  Article

Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org> writes:

> Pid reuse is common, which means that it's difficult or impossible
> to read information about a pid from /proc without races.

Sigh.

What we need are not race free pids, but a file descriptor based process
management api.  Possibly one that starts by handing you a proc
directory.

Which probably means that we need a proc file we can write to and send
signals to a process, and another proc file we can select on and wait
for the process to exit.

Making pids bigger just looks like bandaid.

Remember evovle things in the direction of an object capability system
things wind up being more maintainable.

Eric



to post comments


Copyright © 2014, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds