* 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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user