From dcea37026eb5ee263368247940f0ee4c855f1d8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= <martin@v.loewis.de>
Date: Fri, 1 Mar 2002 13:15:30 +0000
Subject: Patch #524008: Fix portability bug on new POSIX hosts

---
 Demo/pysvr/pysvr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Demo/pysvr/pysvr.c b/Demo/pysvr/pysvr.c
index 50a122c..cced6da 100644
--- a/Demo/pysvr/pysvr.c
+++ b/Demo/pysvr/pysvr.c
@@ -365,6 +365,6 @@ ps(void)
 {
 	char buffer[100];
 	PyOS_snprintf(buffer, sizeof(buffer),
-		      "ps -l -p %d </dev/null | tail +2l\n", getpid());
+		      "ps -l -p %d </dev/null | sed 1d\n", getpid());
 	system(buffer);
 }
-- 
cgit v0.12

