mirror of https://github.com/python/cpython
Patch #524008: Fix portability bug on new POSIX hosts
This commit is contained in:
parent
719cfc4864
commit
dcea37026e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue