public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Are there any changes to the access control to /proc/<PID>/fd/1 in cygwin 3?
@ 2019-06-15 18:28 Till Riedel
  2019-06-16 15:42 ` Brian Inglis
  0 siblings, 1 reply; 4+ messages in thread
From: Till Riedel @ 2019-06-15 18:28 UTC (permalink / raw)
  To: cygwin

Hi,

I have been using a very handy sudo hack, that broke lately (I think) 
when updating cygwin: https://github.com/imachug/win-sudo

The trick is to spawn an elevated process using powershell and hook up 
the calling file descripters. I now get "write error: Bad file descriptor"

To reproduce call:

powershell.exe Start-Process bash  \"-c\",\"\'echo \>\>/proc/$$/fd/1 hello world\;sleep 10\'\"

IMHO this used to work in former versions (print out hello world on the 
calling shell). Strangely

bash -c "echo >/proc/$$/fd/1 hello world"

works. So my initial guess is that is has to do with the decoupling of 
Cygwin PIDs from Windows PIDs, but there were also changes in the proc 
file system...

Thanks a lot in advance for any help/thoughts!

BR

Till


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-20 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-15 18:28 Are there any changes to the access control to /proc/<PID>/fd/1 in cygwin 3? Till Riedel
2019-06-16 15:42 ` Brian Inglis
2019-06-20 19:49   ` Till Riedel [TM]
2019-06-20 20:09     ` Till Riedel [TM]

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).