Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932482AbbDQNX5 (ORCPT ); Fri, 17 Apr 2015 09:23:57 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:33805 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932387AbbDQNXu (ORCPT ); Fri, 17 Apr 2015 09:23:50 -0400 MIME-Version: 1.0 Date: Fri, 17 Apr 2015 16:23:48 +0300 Message-ID: Subject: Re: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status From: Alexey Dobriyan To: xiaoming.wang@intel.com, Tejun Heo Cc: Linux Kernel , mgorman@suse.de, Andrew Morton Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1276 Lines: 29 Tejun Heo wrote: > On Fri, Apr 17, 2015 at 10:13:15AM +0800, Wang Xiaoming wrote: > > Move debugging has been done and the following Kernel issue > > was found with a number of applications. > > Take a look at: (even though the comments are for Weibo.browser > > they also pertain to other apps that use Libsecuritysdk-x.x.x.so > > > > In kernel(3.14) is a little different than before > > it will generate /proc/PID/status in this way: > > Name: a.weibo.browser > > State: T (stopped) > > Tgid: 8487 > > Ngid: 0 ---- add in kernel after (3.11 maybe) > > Well, that's kinda hilarious and I don't know. 3.11 is way back and > what if there are others depending on the current ordering? Both > situations kinda suck so what's the point of changing? It was demonstrated that Ngid addition as line 4 breaks apps, but your "what if" remains "what if". I'd say Ngid should be moved to the end and every new field must be added to the end from now on, people can't parse simple file correctly, let's not create problems for them. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/