Commit dcea3702 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #524008: Fix portability bug on new POSIX hosts

parent 719cfc48
...@@ -365,6 +365,6 @@ ps(void) ...@@ -365,6 +365,6 @@ ps(void)
{ {
char buffer[100]; char buffer[100];
PyOS_snprintf(buffer, sizeof(buffer), 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); system(buffer);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment