Re: Merge posix_spawn() work with CYGWIN env var switch?

2025-07-29 Thread Jeremy Drake via Cygwin-developers
On Tue, 29 Jul 2025, Cedric Blancher via Cygwin wrote: > Good moring! > > Could the posix_spawn() work (branch heads/topic/posix_spawn) be > merged now, but the new version kept off by default unless an option > in the CYGWIN env var is set? > > That would make testing IMO much easier... It coul

Re: Issue with kill after exec in testsuite

2025-07-11 Thread Jeremy Drake via Cygwin-developers
On Fri, 11 Jul 2025, Jeremy Drake via Cygwin-developers wrote: > On Fri, 11 Jul 2025, Jon Turney wrote: > > > On 08/07/2025 20:02, Jeremy Drake via Cygwin-developers wrote: > > > I've run into an odd issue with exec and kill in winsup/testsuite that > > &

Re: Issue with kill after exec in testsuite

2025-07-11 Thread Jeremy Drake via Cygwin-developers
On Fri, 11 Jul 2025, Jon Turney wrote: > On 08/07/2025 20:02, Jeremy Drake via Cygwin-developers wrote: > > I've run into an odd issue with exec and kill in winsup/testsuite that > > doesn't happen in a more normal configuration. What I'm doing is getting > &g

Issue with kill after exec in testsuite

2025-07-08 Thread Jeremy Drake via Cygwin-developers
I've run into an odd issue with exec and kill in winsup/testsuite that doesn't happen in a more normal configuration. What I'm doing is getting the pid via getpid (), then forking. In the forked child, I can call kill (pid, SIGUSR1) without issue, but if instead I call execv (passing the pid as a

Re: testsuite tests for Cygwin<->Win32 process interaction

2025-06-26 Thread Jeremy Drake via Cygwin-developers
On Thu, 26 Jun 2025, Jeremy Drake via Cygwin-developers wrote: > On Thu, 26 Jun 2025, Corinna Vinschen wrote: > > > On Jun 25 16:15, Jeremy Drake via Cygwin-developers wrote: > > > This turned out to be more complicated than I expected, > > > GetFileInformationByHand

Re: testsuite tests for Cygwin<->Win32 process interaction

2025-06-26 Thread Jeremy Drake via Cygwin-developers
On Thu, 26 Jun 2025, Corinna Vinschen wrote: > On Jun 25 16:15, Jeremy Drake via Cygwin-developers wrote: > > This turned out to be more complicated than I expected, > > GetFileInformationByHandleEx(FileNameInfo) sucks badly, and seems to only > > actually work for regul

Re: testsuite tests for Cygwin<->Win32 process interaction

2025-06-25 Thread Jeremy Drake via Cygwin-developers
On Wed, 25 Jun 2025, Jon Turney wrote: > On 25/06/2025 20:52, Jeremy Drake via Cygwin-developers wrote: > > I would like to add tests of invoking non-Cygwin processes using > > posix_spawn and making sure their stdin/out/err and cwd are as expected. > > I see that there is

testsuite tests for Cygwin<->Win32 process interaction

2025-06-25 Thread Jeremy Drake via Cygwin-developers
I would like to add tests of invoking non-Cygwin processes using posix_spawn and making sure their stdin/out/err and cwd are as expected. I see that there is a mingw directory for building with the cross-mingw compiler, and I could make a test child process built through that which uses GetFileInfo

Re: Additional tests in CI

2025-06-15 Thread Jeremy Drake via Cygwin-developers
On Sun, 15 Jun 2025, Jon Turney wrote: > On 14/06/2025 06:14, Jeremy Drake wrote: > > On Fri, 13 Jun 2025, Jeremy Drake via Cygwin-developers wrote: > > > > > I got permission denied trying to push to a new branch. > > You have been granted additional permissions

Re: Additional tests in CI

2025-06-13 Thread Jeremy Drake via Cygwin-developers
On Fri, 13 Jun 2025, Jeremy Drake via Cygwin-developers wrote: > I got permission denied trying to push to a new branch. > I'm working on posix_spawn tests on github, since that's where the actions > would run, and also locally and on Linux. > > https://github.com/jerem

Re: Additional tests in CI

2025-06-13 Thread Jeremy Drake via Cygwin-developers
On Fri, 30 May 2025, Jon Turney wrote: > On 30/05/2025 00:22, Jeremy Drake via Cygwin-developers wrote: > > On Thu, 29 May 2025, Jon Turney wrote: > > > > > Please, feel free to push additional tests there, (ideally after or > > > simultaneously wit

Re: Additional tests in CI

2025-05-29 Thread Jeremy Drake via Cygwin-developers
On Thu, 29 May 2025, Jon Turney wrote: > Please, feel free to push additional tests there, (ideally after or > simultaneously with a fix, so we don't get failures :)) > > (or to suggest additional regression tests, if you don't have push rights) Would that be as user cyg...@cygwin.com like cygwin

Re: Random ideas for 3.7

2025-04-01 Thread Jeremy Drake via Cygwin-developers
On Tue, 18 Mar 2025, Corinna Vinschen wrote: > If you have other ideas what could be helpful for Cygwin, don't be shy > to add it to this thread. Ideally with the intention to look into > implementing it by yourself, but at least a certain willingness to look > into the source code and discuss po

Re: Random ideas for 3.7

2025-03-18 Thread Jeremy Drake via Cygwin-developers
On Tue, 18 Mar 2025, Corinna Vinschen wrote: > One of the biggies here is the way descriptor passing works in Cygwin. > > We're coming from a historical API model which didn't know the > STARTUPINFOEX datatype, nor the UpdateProcThreadAttribute function > and PROC_THREAD_ATTRIBUTE_HANDLE_LIST. Th

Re: Random ideas for 3.7

2025-03-18 Thread Jeremy Drake via Cygwin-developers
On Tue, 18 Mar 2025, Corinna Vinschen wrote: > Fodder for future Cygwin development: > > If you have other ideas what could be helpful for Cygwin, don't be shy > to add it to this thread. Ideally with the intention to look into > implementing it by yourself, but at least a certain willingness to

Re: double-fork issue on Windows on ARM64

2024-05-21 Thread Jeremy Drake via Cygwin-developers
On Mon, 20 May 2024, Jeremy Drake wrote: > Today, I was attempting to look at the TerminateThread situation. The > call in question comes from the attempt to terminate the wait_thread of a > chld_procs entry. I noticed elsewhere in cygwin code (flock.cc) that > CancelSynchronousIo was being call

Re: double-fork issue on Windows on ARM64

2024-05-20 Thread Jeremy Drake via Cygwin-developers
On Wed, 8 May 2024, Jeremy Drake wrote: > (this is the same issue discussed in > https://cygwin.com/pipermail/cygwin-patches/2024q1/012621.html) > > On MSYS2, running on Windows on ARM64 only, we've been plagued by issues > with processes hanging up. Usually pacman, when it is trying to validate

double-fork issue on Windows on ARM64

2024-05-08 Thread Jeremy Drake via Cygwin-developers
(this is the same issue discussed in https://cygwin.com/pipermail/cygwin-patches/2024q1/012621.html) On MSYS2, running on Windows on ARM64 only, we've been plagued by issues with processes hanging up. Usually pacman, when it is trying to validate signatures with gpgme. When a process is hung in