From: Takashi Iwai Subject: Re: Re: Change processname for dmix/dsnoop process Date: Wed, 05 Oct 2005 11:54:03 +0200 Message-ID: References: <433D491A.8070700@vidsoft.de> <43429444.20903@plan99.net> <4342CC0D.30104@plan99.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <4342CC0D.30104@plan99.net> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Mike Hearn Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 04 Oct 2005 19:38:05 +0100, Mike Hearn wrote: > > > >It seems not always working. At least, ps shows the old content while > >pstree shows the new name. Possibly because /proc entry doesn't > >change. > > > > Try changing argv[0] before the exec() call - it's got something to do > with that. I don't remember exactly. dmix doesn't exec :) We may overwrite argv[0] string, but its pointer isn't known in the dmix function. Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl