diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-05-23 20:47:45 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-05-23 20:47:45 +0000 |
commit | 61fb9713c6ac3e1fb6878c0adffb1d6d39638efe (patch) | |
tree | d96cfc8e8d670cf6d6e84b3d72b8940de29f0ae4 /winsup/cygwin/fork.cc | |
parent | c6696a3426628761a201c12af68325b12ec6f0b8 (diff) | |
download | cygnal-61fb9713c6ac3e1fb6878c0adffb1d6d39638efe.tar.gz cygnal-61fb9713c6ac3e1fb6878c0adffb1d6d39638efe.tar.bz2 cygnal-61fb9713c6ac3e1fb6878c0adffb1d6d39638efe.zip |
* fork.cc (frok::parent): Call CreateProcessW with command line set
to the parent command line. Change comment to explain why.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r-- | winsup/cygwin/fork.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index 7d5f7101c..837fc1f81 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -351,7 +351,11 @@ frok::parent (volatile char * volatile stack_here) { hchild = NULL; rc = CreateProcessW (myself->progname, /* image to run */ - myself->progname, /* what we send in arg0 */ + GetCommandLineW (), /* Take same space for command + line as in parent to make + sure child stack is allocated + in the same memory location + as in parent. */ &sec_none_nih, &sec_none_nih, TRUE, /* inherit handles from parent */ |