From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934166AbXEKTuL (ORCPT ); Fri, 11 May 2007 15:50:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762876AbXEKTnp (ORCPT ); Fri, 11 May 2007 15:43:45 -0400 Received: from crystal.sipsolutions.net ([195.210.38.204]:47891 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030823AbXEKTnn (ORCPT ); Fri, 11 May 2007 15:43:43 -0400 Subject: Re: [patch 7/7] tidy up usermode helper waiting a bit From: Johannes Berg To: Jeremy Fitzhardinge Cc: Andi Kleen , Andrew Morton , lkml , Chris Wright , James Bottomley , Randy Dunlap , Christoph Hellwig , Paul Mackerras , Ralf Baechle , Bjorn Helgaas , Joel Becker , Tony Luck , Kay Sievers , Srivatsa Vaddagiri , Oleg Nesterov , David Howells In-Reply-To: <20070511000028.927787000@goop.org> References: <20070510235708.155502000@goop.org> <20070511000028.927787000@goop.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-sFFcLZ1GwqbCQHq0GBUJ" Date: Fri, 11 May 2007 21:45:35 +0200 Message-Id: <1178912735.28304.4.camel@johannes.berg> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --=-sFFcLZ1GwqbCQHq0GBUJ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable [/me wonders why he was CC'ed] > /* CLONE_VFORK: wait until the usermode helper has execve'd > * successfully We need the data structures to stay around > * until that is done. */ > - if (wait) > + if (wait =3D=3D UMH_WAIT_PROC) > pid =3D kernel_thread(wait_for_helper, sub_info, > CLONE_FS | CLONE_FILES | SIGCHLD); > else > pid =3D kernel_thread(____call_usermodehelper, sub_info, > CLONE_VFORK | SIGCHLD); Isn't that a change in behaviour? Previously it said if (wait) <=3D> if (wait !=3D 0) <=3D> if (wait !=3D UMH_WAIT_EXEC) or am I missing something? johannes --=-sFFcLZ1GwqbCQHq0GBUJ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Comment: Johannes Berg (powerbook) iD8DBQBGRMff/ETPhpq3jKURAqLhAJwIXv4q2Q+f8cg5H+PZ/PyXpRqxmwCcDvRb +SVTDL8+lIE7jrEXsW3cTWA= =0PuZ -----END PGP SIGNATURE----- --=-sFFcLZ1GwqbCQHq0GBUJ--