X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fspawn-pipe.c;h=fc7834d00c0c161f6dc463aefce95293c3518b1e;hb=8aa4d66e12c2b2cec1ed9792868f14724af2828c;hp=809cccf41562c8290934db731a473c279439feba;hpb=8ecf1d24ee3fae764eaed003e615269787aeb8e3;p=gnulib.git diff --git a/lib/spawn-pipe.c b/lib/spawn-pipe.c index 809cccf41..fc7834d00 100644 --- a/lib/spawn-pipe.c +++ b/lib/spawn-pipe.c @@ -1,5 +1,5 @@ /* Creation of subprocesses, communicating via pipes. - Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -37,7 +37,7 @@ #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -/* Native Woe32 API. */ +/* Native Windows API. */ # include # include "w32spawn.h" @@ -114,7 +114,7 @@ create_pipe (const char *progname, { #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - /* Native Woe32 API. + /* Native Windows API. This uses _pipe(), dup2(), and spawnv(). It could also be implemented using the low-level functions CreatePipe(), DuplicateHandle(), CreateProcess() and _open_osfhandle(); see the GNU make and GNU clisp @@ -196,7 +196,7 @@ create_pipe (const char *progname, (const char **) environ); if (child < 0 && errno == ENOEXEC) { - /* prog is not an native executable. Try to execute it as a + /* prog is not a native executable. Try to execute it as a shell script. Note that prepare_spawn() has already prepended a hidden element "sh.exe" to prog_argv. */ --prog_argv;