X-Spam-Check-By: sourceware.org Message-ID: <2460.130.240.136.130.1153318997.squirrel@pinus.tt.luth.se> Date: Wed, 19 Jul 2006 16:23:17 +0200 (CEST) Subject: bug in /proc/*/cmdline From: "Bengt-Arne Fjellner" To: cygwin AT cygwin DOT com User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi /proc/*/cmdline contains one extra 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 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 -- Bengt-Arne Fjellner -- 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/