Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62006 - sandbox/SOC/2010/process/boost/process
From: fotanus_at_[hidden]
Date: 2010-05-15 15:32:18


Author: fotanus
Date: 2010-05-15 15:32:17 EDT (Sat, 15 May 2010)
New Revision: 62006
URL: http://svn.boost.org/trac/boost/changeset/62006

Log:
Bug fixed: Starting a process with a context without set one stream_behavior

Text files modified:
   sandbox/SOC/2010/process/boost/process/context.hpp | 13 ++++++-------
   1 files changed, 6 insertions(+), 7 deletions(-)

Modified: sandbox/SOC/2010/process/boost/process/context.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/context.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/context.hpp 2010-05-15 15:32:17 EDT (Sat, 15 May 2010)
@@ -56,13 +56,12 @@
         stream_behavior stdout_behavior; //default: inherit
         stream_behavior stderr_behavior; //default: inherit
 
- context(std::string work_d, stream_behavior def_behavior){
- stdin_behavior = def_behavior;
- stdout_behavior = def_behavior;
- stderr_behavior = def_behavior;
- work_dir = work_d;
+ context(){
+ stdin_behavior = inherit;
+ stdout_behavior = inherit;
+ stderr_behavior = inherit;
+ work_dir = ""; //self::get_work_directory();
         }
- context(){};
 
 };
 
@@ -72,7 +71,7 @@
  * assign to a process if no context is passed by parameter.
  */
 
-static struct context DEFAULT_CONTEXT("",inherit);
+static struct context DEFAULT_CONTEXT;
 
 
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk