Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5574800imd; Tue, 30 Oct 2018 21:26:06 -0700 (PDT) X-Google-Smtp-Source: AJdET5c33zRV/4rr2n6etvql4HjsN6VzBDDsp1a3Gqud5SmGHEwBwTNybxnYjXqFb98YvxXA6CIC X-Received: by 2002:a63:ef47:: with SMTP id c7mr1586338pgk.386.1540959966410; Tue, 30 Oct 2018 21:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540959966; cv=none; d=google.com; s=arc-20160816; b=rscOkOEsFMOYQsiAW24ljv5X/SOGyblJXjeg1ETVtn5xsp2/tGNMSfSggCm1SZs0Tb QdZeXOKFXOHta4kOE3xCV0ubTMTFcRO8Z8IBF/zDSsAwPng1iJdzD/XXNdqpBoZHX1t0 jee0YoLwapoS80ljmev6VxfQUrEeENfCPd3iFkxWPpLnfZfVn+wvcalJ3hQpdJTVxpZ3 1/iO0wxxj95hiuK4GWnj7imryPOogag2eeuv+Sh0w5jIF+6+c8hd2PZjMzmVU7/ylhxm M47a6XhdPuBpEPOF74HRN2CcyqhACAytu02/dWD6dtklDrJuKSLFZ2X7zzv5+2ypVeHV AmnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=OG4wLbERc5d7Nc2NuZ+OQ/qy5mzqS4VpPOjTR+eJy/I=; b=vm3P2avgtgnRRaC2qtKdKZyC81PF3FASciQimdsWXAOjl6tFPVIXnU82tiWOzCO6lP GP5tUC1rx+1d6B0rvGzppnaJxRRaTn4xF6abm5HRWv/C/j56gY6IUYes62/hH4jWEtCu Wc5Fly6GVOJ2quIF0PWQv8lnfmSk6Feu8TlM/nOxRRkwuwdYtFkAZJjEoBifVahP15o+ zOdRfhvJiKCKVXXkx7Qa9tB+C3HNECflYG4uxmha3A9DRSpQpXA8037ST79wx2d7ms7v vQzRkQvLdgQqNRziu1oNXFir8UFGRErzWIxWq++edhXPomeztXyw87enj8/4RezNTqyD otxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=vfopxU8C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8-v6si22113482pfj.269.2018.10.30.21.25.51; Tue, 30 Oct 2018 21:26:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=vfopxU8C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729076AbeJaNUZ (ORCPT + 99 others); Wed, 31 Oct 2018 09:20:25 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38648 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728663AbeJaNUY (ORCPT ); Wed, 31 Oct 2018 09:20:24 -0400 Received: by mail-lj1-f196.google.com with SMTP id q186-v6so193718ljb.5 for ; Tue, 30 Oct 2018 21:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OG4wLbERc5d7Nc2NuZ+OQ/qy5mzqS4VpPOjTR+eJy/I=; b=vfopxU8CEqRagLOXs+1c+Oh/cvAfomj6pQH/WcLDMhSypuHRcDu+Wm5Mf/AeLdtpBD oY1MpGc6qnBZEoOeNU3CF5iXgMTfQRJS9aJbLKcn1opIQJjPH52MZDPTK+j66hnNikJs 6yiDoOQe4dzePgWdFhrbbcyXHB1kBj4yttEa0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OG4wLbERc5d7Nc2NuZ+OQ/qy5mzqS4VpPOjTR+eJy/I=; b=dlf8djO3copsYn8ItjcligHiY7Ze41OQNjXz+HJiPPFuFh7SoNdZJ/zZADSsaLxUwU eylKHjJFmhhxtt0vbF4vjc9gLjKq8f6xkyEORx35yvWdZi04uSRSJkXsg0ZvhDrdZ0Pa QmGz/1sF8I/DTeznWseH2OSBCGnD3Q80Yq3QBZ3btXs9ZCEu7kSj5tAqQ90AsbxOYjrK /04d3/jsP+KujU4kFxAwFdkQkr+K3jtDdZWXiBi6aTSwfWf2Ok8rP2aJsydmMNByM8pt h9+Lnak/w+mNO8NihKfUFoHmyb8gj01q+dSrSeA12gHLwuayMMjdB3Hb/AGmrMSz/E1i 1ezQ== X-Gm-Message-State: AGRZ1gJ4CmWOV//yt502gDUgO5KcCc6NMgWR6A0U2dYJcNHxPgsiAmwn e4IBcRHnF/d64PS4a7R1jWIy4iQ5NTc8Fehu/a3QJEay X-Received: by 2002:a2e:7801:: with SMTP id t1-v6mr751516ljc.120.1540959841660; Tue, 30 Oct 2018 21:24:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:650a:0:0:0:0:0 with HTTP; Tue, 30 Oct 2018 21:24:00 -0700 (PDT) In-Reply-To: <20181031025655.yz7lfhswk7igb3ty@yavin> References: <20181029221037.87724-1-dancol@google.com> <20181030050012.u43lcvydy6nom3ul@yavin> <20181030204501.jnbe7dyqui47hd2x@yavin> <20181030214243.GB32621@google.com> <20181030222339.ud4wfp75tidowuo4@yavin> <20181030223343.GB105735@joelaf.mtv.corp.google.com> <20181031025655.yz7lfhswk7igb3ty@yavin> From: Joel Fernandes Date: Tue, 30 Oct 2018 21:24:00 -0700 Message-ID: Subject: Re: [RFC PATCH] Implement /proc/pid/kill To: Aleksa Sarai Cc: Christian Brauner , Daniel Colascione , Linux Kernel Mailing List , Tim Murray , Suren Baghdasaryan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 30, 2018 at 7:56 PM, Aleksa Sarai wrote: > On 2018-10-31, Christian Brauner wrote: >> > I think Aleksa's larger point is that it's useful to treat processes >> > as other file-descriptor-named, poll-able, wait-able resources. >> > Consistency is important. A process is just another system resource, >> > and like any other system resource, you should be open to hold a file >> > descriptor to it and do things to that process via that file >> > descriptor. The precise form of this process-handle FD is up for >> > debate. The existing /proc/$PID directory FD is a good candidate for a >> > process handle FD, since it does almost all of what's needed. But >> > regardless of what form a process handle FD takes, we need it. I don't >> > see a case for continuing to treat processes in a non-unixy, >> > non-file-descriptor-based manner. >> >> That's what I'm proposing in the API for which I'm gathering feedback. >> I have presented parts of this in various discussions at LSS Europe last week >> and will be at LPC. >> We don't want to rush an API like this though. It was tried before in >> other forms >> and these proposals didn't make it. > > :+1: on a well thought-out and generic proposal. As we've discussed > elsewhere, this is an issue that really would be great to (finally) > solve. Excited to see this and please count me in for discussions around this. thanks. - Joel