From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754006Ab3EMQpp (ORCPT ); Mon, 13 May 2013 12:45:45 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34135 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435Ab3EMQpn (ORCPT ); Mon, 13 May 2013 12:45:43 -0400 X-Sasl-enc: BJb6NcJK5rEmVancD1RSEdBGiuJazOZWM3MFebY0KmLK 1368463542 Subject: Re: [RFC] teach argv_split() to ignore the spaces surrounded by \e From: Colin Walters To: Oleg Nesterov Cc: Lucas De Marchi , lkml , Andrew Morton , Rusty Russell , Andi Kleen , Neil Horman , Lennart Poettering , Denys Vlasenko In-Reply-To: <20130513143537.GA3278@redhat.com> References: <1368159316-31744-1-git-send-email-lucas.de.marchi@gmail.com> <1368159316-31744-3-git-send-email-lucas.de.marchi@gmail.com> <20130510125826.GA553@redhat.com> <20130510153638.GA8179@redhat.com> <20130510171054.GA27479@redhat.com> <20130513141633.GB1613@redhat.com> <20130513143537.GA3278@redhat.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 13 May 2013 12:06:07 -0400 Message-ID: <1368461167.11935.39.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-30.el6) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2013-05-13 at 16:35 +0200, Oleg Nesterov wrote: > Yes, we can change format_corename() to construct "argv" by hand, and > this was my iniital plan. But perhaps it would be better to not uglify > this code even more? Sure this \e is less code, but it seems pretty ugly to me. Maybe a way to keep fs/coredump.c sane would be always constructing an argv, and then in the !ispipe case just join them into one string. Though I'm still inclined to change systemd to read /proc/pid/cmdline like abrt does; that way it works on current kernels too. For what it's worth I noticed this problem with dconf, which uses g_thread_new ("dconf worker", ...), and g_thread_new uses prctl (PR_SET_NAME).