This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Set argv[0] in the win32 style for non-Cygwin applications.


On Mon, Sep 25, 2000 at 05:36:15PM +0900, Kazuhiro Fujieda wrote:
>The following patch will be useful, when a Cygwin application
>launch non-Cygwin applications such as examine argv[0].
>
>ChangeLog:
>Mon Sep 25 17:33:29 2000  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
>
>	* spawn.cc (spawn_guts): Set argv[0] in the win32 style for
>	non-Cygwin applications.

This is a good idea (and I think the code used to do this) but it should
probably just always force the first argument into Windows format.  A cygwin
app will always use the argv array and a non-cygwin app will always use the
argument list, so...

Thanks for catching this.

Btw, there are still memory leaks in the cygwin heap mechanism, especially with
regard to exec.  I'm mulling over methods for eliminating them.
cgf

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]