summaryrefslogtreecommitdiff
path: root/lib/server/LocalProcessStream.cpp
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-12-12 20:50:00 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-12-12 20:50:00 +0000
commit3bedf8846f4d7a5cb38276b274662d62a36dcd52 (patch)
tree9d51de8b0f3d06ba6549a5a1958e52f592343140 /lib/server/LocalProcessStream.cpp
parent81d8eda2419e7a23088a98cdfc52a305c9ceac0d (diff)
Marged chris/win32/merge/07-win32-fixes at r210 to trunk
Diffstat (limited to 'lib/server/LocalProcessStream.cpp')
-rw-r--r--lib/server/LocalProcessStream.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/server/LocalProcessStream.cpp b/lib/server/LocalProcessStream.cpp
index f2a97c56..0de7bef4 100644
--- a/lib/server/LocalProcessStream.cpp
+++ b/lib/server/LocalProcessStream.cpp
@@ -9,7 +9,9 @@
#include "Box.h"
+#ifndef WIN32
#include <sys/socket.h>
+#endif
#include <unistd.h>
#include "LocalProcessStream.h"
@@ -36,6 +38,8 @@ std::auto_ptr<IOStream> LocalProcessStream(const char *CommandLine, pid_t &rPidO
// Split up command
std::vector<std::string> command;
SplitString(std::string(CommandLine), ' ', command);
+
+#ifndef WIN32
// Build arguments
char *args[MAX_ARGUMENTS + 4];
{
@@ -94,6 +98,11 @@ std::auto_ptr<IOStream> LocalProcessStream(const char *CommandLine, pid_t &rPidO
// Return the stream object and PID
rPidOut = pid;
return stream;
+#else // WIN32
+ ::syslog(LOG_ERR, "vfork not implemented - LocalProcessStream.cpp");
+ std::auto_ptr<IOStream> stream;
+ return stream;
+#endif // ! WIN32
}