comparison src/syscalls.cc @ 12075:762999a046e9 release-3-2-x

syscalls.cc: Recommend waitpid() in popen2() documentation. * * * fix typo in last patch
author Rob Mahurin <rob@utk.edu>
date Wed, 26 Aug 2009 08:17:08 +0200
parents 923c7cb7f13f
children
comparison
equal deleted inserted replaced
12074:e7c3e9ad2286 12075:762999a046e9
250 else\n\ 250 else\n\
251 done = true;\n\ 251 done = true;\n\
252 endif\n\ 252 endif\n\
253 until (done)\n\ 253 until (done)\n\
254 fclose (out);\n\ 254 fclose (out);\n\
255 waitpid (pid);\n\
256 @print{} these\n\
257 @print{} strings\n\
258 @print{} some\n\
255 @print{} are\n\ 259 @print{} are\n\
256 @print{} some\n\
257 @print{} strings\n\
258 @print{} these\n\
259 @end example\n\ 260 @end example\n\
261 \n\
262 Note that @code{popen2}, unlike @code{popen}, will not \"reap\" the\n\
263 child process. If you don't use @code{waitpid} to check the child's\n\
264 exit status, it will linger until Octave exits.\n\
260 @end deftypefn") 265 @end deftypefn")
261 { 266 {
262 octave_value_list retval; 267 octave_value_list retval;
263 268
264 retval(2) = -1; 269 retval(2) = -1;