[Python-checkins] CVS: python/dist/src/Demo/pysvr pysvr.c,1.10,1.11

Martin v. L?wis loewis@users.sourceforge.net
Fri, 01 Mar 2002 05:15:33 -0800


Update of /cvsroot/python/python/dist/src/Demo/pysvr
In directory usw-pr-cvs1:/tmp/cvs-serv32447

Modified Files:
	pysvr.c 
Log Message:
Patch #524008: Fix portability bug on new POSIX hosts


Index: pysvr.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/pysvr/pysvr.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** pysvr.c	28 Nov 2001 20:27:42 -0000	1.10
--- pysvr.c	1 Mar 2002 13:15:30 -0000	1.11
***************
*** 366,370 ****
  	char buffer[100];
  	PyOS_snprintf(buffer, sizeof(buffer),
! 		      "ps -l -p %d </dev/null | tail +2l\n", getpid());
  	system(buffer);
  }
--- 366,370 ----
  	char buffer[100];
  	PyOS_snprintf(buffer, sizeof(buffer),
! 		      "ps -l -p %d </dev/null | sed 1d\n", getpid());
  	system(buffer);
  }