Re: killpg(pgid, 0) fails if the process is in the middle of spawnve()

2022-05-18 Thread Jun T
> 2022/05/18 23:54, Corinna Vinschen wrote: > > For a start, can you try the above patch? Thanks for a quick response. The patch seems to solve the problem. Of course there is a possibility that it happens with very low probability, but I haven't get the problem by running 'cmd | less' many t

killpg(pgid, 0) fails if the process is in the middle of spawnve()

2022-05-18 Thread Jun T
Dear Cygwin developers, It seems killpg(2) on Cygwin has a problem as described below. Can this be (easily) fixed? [1] The problem killpg(pgid, 0) (or kill_pgrp(pgid, si_signo=0), in signal.cc) fails (returns -1) even when there is a process in the process group pgid, if the process is in the mi

directory without search permission is searchable?

2020-02-25 Thread Jun T
It seems 'ls -l dir/file' or 'stat dir/file' succeeds even if I don't have read/search permission for the 'dir'. Create a directory and a file in it: $ mkdir tmpdir $ ls -ld tmpdir drwxr-xr-x+ 1 takimoto none 0 Feb 26 12:46 tmpdir $ touch tmpdir/afile $ ls -l tmpdir/afile -rw-r--r-- 1 takimoto 0

moving pty master by dup()/close() causes read() to fail

2013-12-16 Thread Jun T.
Hi all. I'm new to this list. The test code at the end of this post has some problem on Cygwin. What the code does are: use forkpty() to open pty master (and slave for child), write a character 'A' to the slave, duplicate the master file descriptor, and read() from the (duplicated) master.