summaryrefslogtreecommitdiffstats
path: root/Demo/pysvr/pysvr.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-01 13:15:30 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-03-01 13:15:30 (GMT)
commitdcea37026eb5ee263368247940f0ee4c855f1d8a (patch)
tree4ffe8fc5aee450d1743a78ebccee795aa5865d58 /Demo/pysvr/pysvr.c
parent719cfc4864f4bbe941f85dae5eb4fdc403dc8400 (diff)
downloadcpython-dcea37026eb5ee263368247940f0ee4c855f1d8a.zip
cpython-dcea37026eb5ee263368247940f0ee4c855f1d8a.tar.gz
cpython-dcea37026eb5ee263368247940f0ee4c855f1d8a.tar.bz2
Patch #524008: Fix portability bug on new POSIX hosts
Diffstat (limited to 'Demo/pysvr/pysvr.c')
-rw-r--r--Demo/pysvr/pysvr.c2
1 files changed, 1 insertions, 1 deletions
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);
}