mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Patch #524008: Fix portability bug on new POSIX hosts
This commit is contained in:
parent
719cfc4864
commit
dcea37026e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue