delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 19 Jul 2006 18:00:44 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: bug in /proc/*/cmdline |
Message-ID: | <20060719160044.GB8056@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <2460 DOT 130 DOT 240 DOT 136 DOT 130 DOT 1153318997 DOT squirrel AT pinus DOT tt DOT luth DOT se> |
Mime-Version: | 1.0 |
In-Reply-To: | <2460.130.240.136.130.1153318997.squirrel@pinus.tt.luth.se> |
User-Agent: | Mutt/1.4.2i |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Jul 19 16:23, Bengt-Arne Fjellner wrote: > Hi > > /proc/*/cmdline contains one extra <nul> which makes pgrep,pkill and ps misbehave > > on cygwin > $ cat /proc/self/cmdline |od -c > 0000000 c a t \0 / p r o c / s e l f / c > 0000020 m d l i n e \0 \0 > 0000030 > note the terminating <nul><nul> > > on linux(trustix) > baf AT xxx ~/procps$ cat /proc/self/cmdline |od -c > 0000000 c a t \0 / p r o c / s e l f / c > 0000020 m d l i n e \0 > 0000027 > > This diff makes > sleep 100& > pgrep -fx "sleep 100" > #fail > #but > pgrep -fx "sleep 100 " > #works Thanks for the hint. Fixed in CVS. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |