X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Sven_K=F6hler?= Subject: Re: [BUG?] run.exe and pdflatex Date: Thu, 10 Jan 2008 22:30:14 +0100 Lines: 71 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0ED546D6F2E526499D134A0D" User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam --------------enig0ED546D6F2E526499D134A0D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > Finally, > you can look at the sources for run.exe (available via Cygwin setup) and > submit a patch (look at the first argument to CreateProcess). Hmm. So indeed run seems to use the Windows-API to create the new rprocess. But that pdfetex knows, that is has been invoked by the name pdflatex, must be an internal cygwin thing. Because actually, when executing pdflatex from bash, cygwin must follow the symlink and then executed pdfetex.exe. Still, cygwin reports to pdfetex, that it was invoked with the command pdflatex. So i have no clue where to start here. Actually, i wrote a small C program. And sure, it will not hide the console window, when startes. But it simply uses execve to start the program given in the parameter list: #include #include int main(int argc, char * argv[]) { if (argc < 2) { printf("you must give some parameters\n"); return 1; } int i =3D execve(argv[1], argv+1, NULL); printf("execve failed: %i\n", i); return 2; } I'm amazed, it even works. Anyway: after compiling it under cygwin and putting it to /bin/myrun.exe it's possible for me to successfully start pdflatex by using c:\path\to\cygwin\bin\myrun.exe /usr/bin/pdflatex document.tex Hmm. I'm not sure, in which troubles i get by going this way. --------------enig0ED546D6F2E526499D134A0D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHho5m7Ww7FjRBE4ARArMzAJ9Rk1vSA9RlSZkurgEQbeZpx+icTgCgleAd VZvWz+X+FFPIqmLoSne9qxo= =lhPm -----END PGP SIGNATURE----- --------------enig0ED546D6F2E526499D134A0D--