[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10333 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10333 - gnunet/src/util |
Date: |
Tue, 16 Feb 2010 18:19:37 +0100 |
Author: nevans
Date: 2010-02-16 18:19:37 +0100 (Tue, 16 Feb 2010)
New Revision: 10333
Modified:
gnunet/src/util/os_priority.c
Log:
possible start for windows passing of stdin and stdout to child process
Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c 2010-02-16 17:04:38 UTC (rev 10332)
+++ gnunet/src/util/os_priority.c 2010-02-16 17:19:37 UTC (rev 10333)
@@ -218,6 +218,10 @@
char *cmd, *idx;
STARTUPINFO start;
PROCESS_INFORMATION proc;
+#if NILS
+ HANDLE stdin_handle;
+ HANDLE stdout_handle;
+#endif
char *fn;
int len;
@@ -236,6 +240,19 @@
memset (&start, 0, sizeof (start));
start.cb = sizeof (start);
+#if NILS
+ if (pipe_stdin != NULL)
+ {
+ GNUNET_DISK_internal_file_handle_ (GNUNET_DISK_pipe_handle(pipe_stdin,
GNUNET_DISK_PIPE_END_READ), &stdin_handle, sizeof (HANDLE));
+ start.hStdInput = stdin_handle;
+ }
+
+ if (pipe_stdout != NULL)
+ {
+ GNUNET_DISK_internal_file_handle_ (GNUNET_DISK_pipe_handle(pipe_stdout,
GNUNET_DISK_PIPE_END_WRITE), &stdout_handle, sizeof (HANDLE));
+ start.hStdOutput = stdout_handle;
+ }
+#endif
len = strlen (filename);
if (strnicmp (filename + len - 4, ".exe", 4) == 0)
fn = filename;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10333 - gnunet/src/util,
gnunet <=