From: <and...@us...> - 2011-10-19 11:09:03
|
Revision: 11976 http://plplot.svn.sourceforge.net/plplot/?rev=11976&view=rev Author: andrewross Date: 2011-10-19 11:08:56 +0000 (Wed, 19 Oct 2011) Log Message: ----------- Change from using vfork to using fork. There is a slight performance overhead involved in this, but it is much more standard. vfork was never a well established standard and the Linux man page strongly discourages its use. Modified Paths: -------------- trunk/drivers/tk.c Modified: trunk/drivers/tk.c =================================================================== --- trunk/drivers/tk.c 2011-10-19 11:05:10 UTC (rev 11975) +++ trunk/drivers/tk.c 2011-10-19 11:08:56 UTC (rev 11976) @@ -1283,7 +1283,7 @@ if ( pls->dp && pls->server_host != NULL ) { - if ( ( dev->child_pid = vfork() ) < 0 ) + if ( ( dev->child_pid = fork() ) < 0 ) { abort_session( pls, "Unable to fork server process" ); } @@ -1305,7 +1305,7 @@ else { plserver_exec = plFindCommand( pls->plserver ); - if ( ( plserver_exec == NULL ) || ( dev->child_pid = vfork() ) < 0 ) + if ( ( plserver_exec == NULL ) || ( dev->child_pid = fork() ) < 0 ) { abort_session( pls, "Unable to fork server process" ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |