]> sourceware.org Git - newlib-cygwin.git/commit
* spawn.cc (child_info_spawn::worker): Eliminate call to newargv.set() in favor
authorChristopher Faylor <me@cgf.cx>
Wed, 19 Jun 2013 16:00:43 +0000 (16:00 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 19 Jun 2013 16:00:43 +0000 (16:00 +0000)
commit37ee5b49affbd393b04b620942d846efc9687082
treef49423a6d488410446d4102babe20202ad2dd361
parent82c19d335abd0ee957ad5c3167755a545521504a
* spawn.cc (child_info_spawn::worker): Eliminate call to newargv.set() in favor
of conglomerated newargv.setup().  Let newargv.setup() decide when to call
dup_all().  Only set argc and argv for cygwin processes.
(av::setup): Rename from av::fixup.  Accept argc and argv parameters.  Fill out
argv and argc here.  Duplicate whole argv structure when this is a Cygwin
executable.
* winf.cc (linebuf::fromargv): Don't bother duplicating argv elements since
they will never be used.
* winf.h (av::set): Delete.
(av::setup): Rename from av::fixup.  Add two parameters.
(av::replace0_maybe): Assign calloced to 1 rather than 'true' for clarity.
(av::dup_maybe): Delete.
(av::dup_all): Set calloced to show that we have duplicated all of the
arguments in the list.
winsup/cygwin/ChangeLog
winsup/cygwin/spawn.cc
winsup/cygwin/winf.cc
winsup/cygwin/winf.h
This page took 0.028874 seconds and 5 git commands to generate.