Re: Synchronization problem with posix_spawn

2020-08-21 Thread Peter Dons Tychsen via Cygwin
Hi Corinna, On Thu, 2020-08-20 at 14:50 +0200, Corinna Vinschen wrote: > No, it won't work as expected, as you can see from the discussion in > > this thread. Some internal work would be required. OK. So even with no file actions and spawn atributes, it still would break things. What kind of t

Re: Synchronization problem with posix_spawn

2020-08-20 Thread Corinna Vinschen
On Aug 20 07:40, Peter Dons Tychsen via Cygwin wrote: > Hi Corinna, > > > spawn alone doesn't cut it, due to the requirement to support the > > additional file actions and spawn atributes POSIX defines. This > > would require a revamp of Cygwin's spawn functionality, which is > > already quite co

Re: Synchronization problem with posix_spawn

2020-08-19 Thread Peter Dons Tychsen via Cygwin
Hi Corinna, > spawn alone doesn't cut it, due to the requirement to support the > additional file actions and spawn atributes POSIX defines. This > would require a revamp of Cygwin's spawn functionality, which is > already quite complicated. So this is something I'm only willing > to do in homeo

Re: Synchronization problem with posix_spawn

2020-08-03 Thread Corinna Vinschen
On Aug 3 11:10, Peter Dons Tychsen via Cygwin wrote: > Hi all, > > On Fri, 2020-07-31 at 10:10 +0200, Corinna Vinschen wrote: > > Oh well. I did a quick test with your new testcase (thanks for > > that!) > > and it seems to be a bit more complicated than I anticipated > > yesterday. > > The pare

Re: Synchronization problem with posix_spawn

2020-08-03 Thread Peter Dons Tychsen via Cygwin
Hi all, On Fri, 2020-07-31 at 10:10 +0200, Corinna Vinschen wrote: > Oh well. I did a quick test with your new testcase (thanks for > that!) > and it seems to be a bit more complicated than I anticipated > yesterday. > The parent-child relationship between the processes is broken. I > have > to

Re: Synchronization problem with posix_spawn

2020-07-31 Thread Corinna Vinschen
On Jul 30 19:04, Ken Brown via Cygwin wrote: > Hi Corinna, > > On 7/30/2020 1:17 PM, Corinna Vinschen wrote: > > Hi Ken, > > > > On Jul 30 13:59, Corinna Vinschen wrote: > > > On Jul 29 19:12, Ken Brown via Cygwin wrote: > > > > On 7/29/2020 4:17 PM, Ken Brown via Cygwin wrote: > > > > > posix_sp

Re: Synchronization problem with posix_spawn

2020-07-30 Thread Ken Brown via Cygwin
Hi Corinna, On 7/30/2020 1:17 PM, Corinna Vinschen wrote: Hi Ken, On Jul 30 13:59, Corinna Vinschen wrote: On Jul 29 19:12, Ken Brown via Cygwin wrote: On 7/29/2020 4:17 PM, Ken Brown via Cygwin wrote: posix_spawn(p) returns before the spawned process is fully up and running.  [...] I just

Re: Synchronization problem with posix_spawn

2020-07-30 Thread Corinna Vinschen
Hi Ken, On Jul 30 13:59, Corinna Vinschen wrote: > On Jul 29 19:12, Ken Brown via Cygwin wrote: > > On 7/29/2020 4:17 PM, Ken Brown via Cygwin wrote: > > > posix_spawn(p) returns before the spawned process is fully up and > > > running.  [...] > > I just took a look at the source, and I see that p

Re: Synchronization problem with posix_spawn

2020-07-30 Thread Corinna Vinschen
On Jul 29 19:12, Ken Brown via Cygwin wrote: > On 7/29/2020 4:17 PM, Ken Brown via Cygwin wrote: > > posix_spawn(p) returns before the spawned process is fully up and > > running.  [...] > I just took a look at the source, and I see that posix_spawn was taken from > FreeBSD. Does FreeBSD have the

Re: Synchronization problem with posix_spawn

2020-07-29 Thread Ken Brown via Cygwin
On 7/29/2020 4:17 PM, Ken Brown via Cygwin wrote: posix_spawn(p) returns before the spawned process is fully up and running.  As a result, the spawned process can fail to receive signals.  The attached test case illustrates the problem.  It spawns a sleep process and then tries to kill it. On e

Synchronization problem with posix_spawn

2020-07-29 Thread Ken Brown via Cygwin
posix_spawn(p) returns before the spawned process is fully up and running. As a result, the spawned process can fail to receive signals. The attached test case illustrates the problem. It spawns a sleep process and then tries to kill it. On exit, the sleep process is still running. The foll