Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dcea370

Browse files
committed
Patch #524008: Fix portability bug on new POSIX hosts
1 parent 719cfc4 commit dcea370

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)