Skip to content

Commit 4ab3888

Browse files
author
loewis
committed
Patch #524008: Fix portability bug on new POSIX hosts
git-svn-id: http://svn.python.org/projects/python/trunk@25466 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent e5a9122 commit 4ab3888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Demo/pysvr/pysvr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,6 @@ ps(void)
365365
{
366366
char buffer[100];
367367
PyOS_snprintf(buffer, sizeof(buffer),
368-
"ps -l -p %d </dev/null | tail +2l\n", getpid());
368+
"ps -l -p %d </dev/null | sed 1d\n", getpid());
369369
system(buffer);
370370
}

0 commit comments

Comments
 (0)