summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-16 17:38:41 +0000
committerChristopher Faylor <me@cgf.cx>2000-07-16 17:38:41 +0000
commitb4e59f5f1419800d7a2248d3721a9db88e80d4d8 (patch)
treeb19a62d00cb145ad5e1c15b19a66deef6bf32761 /winsup/cygwin/dcrt0.cc
parent8e382d804957ac50dc61af60eef001cae13c25be (diff)
downloadcygnal-b4e59f5f1419800d7a2248d3721a9db88e80d4d8.tar.gz
cygnal-b4e59f5f1419800d7a2248d3721a9db88e80d4d8.tar.bz2
cygnal-b4e59f5f1419800d7a2248d3721a9db88e80d4d8.zip
* acconfig.h: Add support for NEWVFORK.
* config.h.in: Ditto. * configure.in: Add --enable-vfork option. * configure: Regenerate. * dcrt0.cc (quoted): Detect and fix up quoted backslashes. * sigproc.cc (proc_subproc): Correctly name handle of newly added child process to avoid erroneous debugging messages about closing the wrong handle.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index e33187acf..0b6c7012d 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -313,7 +313,12 @@ quoted (char *cmd, int winshell)
p = cmd + 1;
while (*p)
{
- if (*p != quote)
+ if (*p == '\\' && p[1] == '\\')
+ {
+ strcpy (p, p + 1);
+ p++;
+ }
+ else if (*p != quote)
p++;
else if (p[-1] == '\\')
strcpy (p - 1, p);