Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 719cfc4 commit dcea370Copy full SHA for dcea370
1 file changed
Demo/pysvr/pysvr.c
@@ -365,6 +365,6 @@ ps(void)
365
{
366
char buffer[100];
367
PyOS_snprintf(buffer, sizeof(buffer),
368
- "ps -l -p %d </dev/null | tail +2l\n", getpid());
+ "ps -l -p %d </dev/null | sed 1d\n", getpid());
369
system(buffer);
370
}
0 commit comments