diff src/procstream.cc @ 4051:b79da8779a0e

[project @ 2002-08-17 19:38:32 by jwe]
author jwe
date Sat, 17 Aug 2002 19:38:33 +0000
parents 7031786b3f27
children 6e86256e9c54
line wrap: on
line diff
--- a/src/procstream.cc
+++ b/src/procstream.cc
@@ -30,6 +30,14 @@
 
 #include "procstream.h"
 
+procstreambase::procstreambase (const std::string& command, int mode)
+{
+  pb_init ();
+
+  if (! pb.open (command.c_str (), mode))
+    std::ios::setstate (std::ios::badbit);
+}
+
 procstreambase::procstreambase (const char *command, int mode)
 {
   pb_init ();