Re: Strange bug with /dev/console in mintty

2017-08-29 Thread Erik Bray
ay Erik M. Bray 3, 0 Aug 22 18:29 /dev/conin >> > crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/conout >> > crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/cons0 >> > crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/console >&g

Re: Strange bug with /dev/console in mintty

2017-08-23 Thread Corinna Vinschen
0 Aug 22 18:29 /dev/conout > > crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/cons0 > > crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/console > > > > The same command when run in mintty returns: > > > > crw-rw-rw- 1 Erik M. Bray Erik M.

Re: Strange bug with /dev/console in mintty

2017-08-23 Thread Corinna Vinschen
gt; crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/console > > The same command when run in mintty returns: > > crw-rw-rw- 1 Erik M. Bray Erik M. Bray 5, 255 Aug 22 18:29 /dev/conin > crw-rw-rw- 1 Erik M. Bray Erik M. Bray 5, 254 Aug 22 18:29 /dev/conout > crw-

Re: Strange bug with /dev/console in mintty

2017-08-22 Thread Thomas Wolff
Aug 22 18:29 /dev/console The same command when run in mintty returns: crw-rw-rw- 1 Erik M. Bray Erik M. Bray 5, 255 Aug 22 18:29 /dev/conin crw-rw-rw- 1 Erik M. Bray Erik M. Bray 5, 254 Aug 22 18:29 /dev/conout crw-rw-rw- 1 Erik M. Bray Erik M. Bray 5, 1 Aug 22 18:29 /dev/console In the latter

Strange bug with /dev/console in mintty

2017-08-22 Thread Erik Bray
/con* crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/conin crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/conout crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/cons0 crw-rw-rw- 4 Erik M. Bray Erik M. Bray 3, 0 Aug 22 18:29 /dev/console The same command

Re: /dev/console

2008-05-23 Thread Jaspreet Singh
Din't found any log /dev/console in syslog.conf My syslog.conf # Log anything (except mail) of level info or higher. # Don't log private authentication messages! #*.info;mail.none;authpriv.none /var/log/messages # The authpriv file has restricted access.

Re: /dev/console

2008-05-22 Thread Corinna Vinschen
On May 22 18:35, Jaspreet Singh wrote: > i am getting some kinda error with init, its not executing scripts in > runlevels. syslogd logs > > May 22 18:07:37 node1 init: PID 1832: `init' service stopped, exit status: 0 > May 22 18:07:37 node1 init: open(/dev/console): Permis

/dev/console

2008-05-22 Thread Jaspreet Singh
i am getting some kinda error with init, its not executing scripts in runlevels. syslogd logs May 22 18:07:37 node1 init: PID 1832: `init' service stopped, exit status: 0 May 22 18:07:37 node1 init: open(/dev/console): Permission denied May 22 18:07:43 node1 init: can't open /dev/cons

Re: what's the difference between /dev/tty1 and /dev/console

2008-01-24 Thread Brian Dessent
"Jerry D. Hedden" wrote: > PIDPPIDPGID WINPID TTY UIDSTIME COMMAND > 19992 1 19992 19992 con 78809 08:22:53 /usr/bin/rxvt > 32960 19992 32960 617600 78809 08:22:53 /usr/bin/bash > 19292 32960 19292 331360 78809 08:43:42 /u

Re: what's the difference between /dev/tty1 and /dev/console

2008-01-24 Thread Jerry D. Hedden
Yue Chen wrote: > I have two hosts installed with cygwin. When I click the cygwin icon > on host1, the prompt CLI window's tty is /dev/console. However, when I > click the icon on host2, the CLI window's tty turns to be /dev/tty1. > In the first window, all windows applicati

Re: what's the difference between /dev/tty1 and /dev/console

2008-01-24 Thread Chen Yue
Thank you very much Brian Yue Chen wrote: > I have two hosts installed with cygwin. When I click the cygwin icon > on host1, the prompt CLI window's tty is /dev/console. However, when I > click the icon on host2, the CLI window's tty turns to be /dev/tty1. > In the fir

Re: what's the difference between /dev/tty1 and /dev/console

2008-01-24 Thread Brian Dessent
Yue Chen wrote: > I have two hosts installed with cygwin. When I click the cygwin icon > on host1, the prompt CLI window's tty is /dev/console. However, when I > click the icon on host2, the CLI window's tty turns to be /dev/tty1. > In the first window, all windows applicati

what's the difference between /dev/tty1 and /dev/console

2008-01-24 Thread Yue Chen
Hi cygwin experts I have two hosts installed with cygwin. When I click the cygwin icon on host1, the prompt CLI window's tty is /dev/console. However, when I click the icon on host2, the CLI window's tty turns to be /dev/tty1. In the first window, all windows applications run very we

Re: /dev/console : permission denied -- SOMEWHAT RESOLVED

2005-11-27 Thread Christopher McIntosh
enough time to get too deep into the code... I decided to do a fresh install. I completely removed Cygwin and re-installed using Henrik Bengtsson's Fantastic technique (http://www.maths.lth.se/help/windows/cygwin/). And the /dev/console : permission denied problem has faded into oblivion.

Re: /dev/console : permission denied

2005-11-25 Thread Christopher Faylor
On Fri, Nov 25, 2005 at 04:25:15PM -0600, Christopher McIntosh wrote: >Christopher Faylor wrote: >>On Fri, Nov 25, 2005 at 04:15:28PM -0600, Christopher McIntosh wrote: >>>Dave Korn wrote: >SUMMARY: 1. 'cygcheck -s -v -r' causes an error when executed within a >Cygwin shell (bash, sh, etc.

Re: /dev/console : permission denied

2005-11-25 Thread Christopher McIntosh
Christopher Faylor wrote: On Fri, Nov 25, 2005 at 04:15:28PM -0600, Christopher McIntosh wrote: Dave Korn wrote: SUMMARY: 1. 'cygcheck -s -v -r' causes an error when executed within a Cygwin shell (bash, sh, etc.); but is successful when executed within a CMD shell. Did you try removing '

Re: /dev/console : permission denied

2005-11-25 Thread Christopher Faylor
On Fri, Nov 25, 2005 at 04:15:28PM -0600, Christopher McIntosh wrote: >Dave Korn wrote: >>>SUMMARY: 1. 'cygcheck -s -v -r' causes an error when executed within a >>>Cygwin shell (bash, sh, etc.); but is successful when executed within a >>>CMD shell. >> >>Did you try removing 'tty' from $CYGWIN ye

Re: /dev/console : permission denied

2005-11-25 Thread Christopher McIntosh
Dave Korn wrote: SUMMARY: 1. 'cygcheck -s -v -r' causes an error when executed within a Cygwin shell (bash, sh, etc.); but is successful when executed within a CMD shell. Did you try removing 'tty' from $CYGWIN yet? Yes. 'cygcheck -svr' still crashes... -- Unsubscribe info: htt

Re: /dev/console : permission denied

2005-11-25 Thread Christopher McIntosh
Dave Korn wrote: Must be syslogd then. Chris M, did you run the syslogd-config script or install it manually? I *did* use syslogd-config... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: ht

Re: /dev/console : permission denied

2005-11-25 Thread Chris Taylor
Dave Korn wrote: Chris Taylor wrote: Dave Korn wrote: Christopher Faylor wrote: Christopher McIntosh wrote: Consequently, I am back to the issue which I was first reporting/investigating: Why does init report open(/dev/console) : permission denied. I don't know about the cyg

Re: /dev/console : permission denied

2005-11-25 Thread Christopher Faylor
g/investigating: Why does init report open(/dev/console) : >>>> permission denied. >>> >>> strace might be able to tell you that. >>> >>>> SUMMARY: 1. 'cygcheck -s -v -r' causes an error when executed within a >>>> Cygwin

RE: /dev/console : permission denied

2005-11-25 Thread Dave Korn
Chris Taylor wrote: > Dave Korn wrote: >> Christopher Faylor wrote: >>>> Christopher McIntosh wrote: >>>> >>>>> Consequently, I am back to the issue which I was first >>>>> reporting/investigating: Why does init report open(/dev/

Re: /dev/console : permission denied

2005-11-25 Thread Chris Taylor
Dave Korn wrote: Christopher Faylor wrote: On Fri, Nov 25, 2005 at 02:24:53PM -, Dave Korn wrote: Christopher McIntosh wrote: Consequently, I am back to the issue which I was first reporting/investigating: Why does init report open(/dev/console) : permission denied. strace might be

RE: /dev/console : permission denied

2005-11-25 Thread Dave Korn
Christopher Faylor wrote: > On Fri, Nov 25, 2005 at 02:24:53PM -, Dave Korn wrote: >> Christopher McIntosh wrote: >>> Consequently, I am back to the issue which I was first >>> reporting/investigating: Why does init report open(/dev/console) : >>> permission

Re: /dev/console : permission denied

2005-11-25 Thread Christopher Faylor
On Fri, Nov 25, 2005 at 02:24:53PM -, Dave Korn wrote: >Christopher McIntosh wrote: >>Consequently, I am back to the issue which I was first >>reporting/investigating: Why does init report open(/dev/console) : >>permission denied. > >strace might be able to te

RE: /dev/console : permission denied

2005-11-25 Thread Dave Korn
Christopher McIntosh wrote: > Consequently, I am back to the issue which I was first > reporting/investigating: Why does init report open(/dev/console) : > permission denied. strace might be able to tell you that. > SUMMARY: > 1. 'cygcheck -s -v -r' causes an err

Re: /dev/console : permission denied

2005-11-24 Thread Christopher McIntosh
rror to the event log as described in my previous email. However, no such problem is caused by running 'cygcheck -s' from the CMD.EXE shell. Consequently, I am back to the issue which I was first reporting/investigating: Why does init report open(/dev/console) : permission denied. On a

Re: /dev/console : permission denied

2005-11-24 Thread Christopher McIntosh
which I have installed. Performing 'ls -l /dev/console' reports: crw-rw-rw- Chris PowerUsers 5, 1 Nov 24 05:54 /dev/console So this seems good. This is a stand-alone laptop (not a domain client). I also attached my messages file, in case there is something useful there

Re: /dev/console : permission denied

2005-11-24 Thread Chris Taylor
o/SP2. 'cygcheck -c cygwin' reports 1.5.18-1 (STATUS OK) Specifically, 'cygcheck -c' reports OK for all 212 packages(?) which I have installed. Performing 'ls -l /dev/console' reports: crw-rw-rw- Chris PowerUsers 5, 1 Nov 24 05:54 /dev/console So this seems good.

Re: /dev/console : permission denied

2005-11-24 Thread Christopher McIntosh
n' reports 1.5.18-1 (STATUS OK) Specifically, 'cygcheck -c' reports OK for all 212 packages(?) which I have installed. Performing 'ls -l /dev/console' reports: crw-rw-rw- Chris PowerUsers 5, 1 Nov 24 05:54 /dev/console So this seems good. This is a stand-alone la

Re: /dev/console : permission denied

2005-11-24 Thread Chris Taylor
Christopher McIntosh wrote: Hello cygwinites! In my /var/log/messages file (from syslogd), I find the following message: init : open(/dev/console): Permission denied this message appears whenever init is started or stopped. I've searched and searched but find no mention of it i

/dev/console : permission denied

2005-11-24 Thread Christopher McIntosh
Hello cygwinites! In my /var/log/messages file (from syslogd), I find the following message: init : open(/dev/console): Permission denied this message appears whenever init is started or stopped. I've searched and searched but find no mention of it in the newsgroups. Any insight will be

Re: select() read() and write() on /dev/console

2004-11-23 Thread Jason Curl
instance read() returned EAGAIN/EWOULDBLOCK. 01 128 cygwin_select: 4, 0x22EF48, 0x22EF40, 0x22EF38, 0x22EF50 02 128 dtable::select_read: /dev/console fd 0 03 128 dtable::select_write: /dev/console fd 1 04 128 dtable::select_read: /dev/com2 fd 3 05 128 cygwin_select: to->tv_sec 5, to->tv_usec 0, m

Re: select() read() and write() on /dev/console

2004-11-22 Thread Christopher Faylor
On Mon, Nov 22, 2004 at 05:18:46PM +, Jason Curl wrote: >Where is fds[0] defined, so I can see exactly what functions are being >called by peek_console, etc.? e.g. fh->get_readahead_valid(); >fh->bg_check(SIGTTIN). Also in dtable.cc. Look for the obvious. -- Unsubscribe info: http://c

Re: select() read() and write() on /dev/console

2004-11-22 Thread Jason Curl
Christopher Faylor cygwin.com> writes: > In dtable::select_{read,write,except} . > > cgf Where is fds[0] defined, so I can see exactly what functions are being called by peek_console, etc.? e.g. fh->get_readahead_valid(); fh->bg_check(SIGTTIN). Thanks. -- Unsubscribe info: http://cygw

Re: select() read() and write() on /dev/console

2004-11-22 Thread Christopher Faylor
On Mon, Nov 22, 2004 at 02:53:20PM +, Jason Curl wrote: >Christopher Faylor cygwin.com> writes: >>On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: >>>My question, how do I go about investigating what the root cause is? >>>Has anybody else seen similar issues and been able to work ar

Re: select() read() and write() on /dev/console

2004-11-22 Thread Jason Curl
Christopher Faylor cygwin.com> writes: > > On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: > >My question, how do I go about investigating what the root cause is? Has > >anybody else seen similar issues and been able to work around it? I'm > >stuck and I've never seen the source co

Re: select() read() and write() on /dev/console

2004-11-21 Thread Jason Curl
Christopher Faylor cygwin.com> writes: > > On Sun, Nov 21, 2004 at 07:00:42PM +0100, Jason Curl wrote: > >Christopher Faylor wrote: > >>On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: > >> > >>>My question, how do I go about investigating what the root cause is? Has > >>>anybody els

Re: select() read() and write() on /dev/console

2004-11-21 Thread Christopher Faylor
On Sun, Nov 21, 2004 at 07:00:42PM +0100, Jason Curl wrote: >Christopher Faylor wrote: >>On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: >> >>>My question, how do I go about investigating what the root cause is? Has >>>anybody else seen similar issues and been able to work around it? I

Re: select() read() and write() on /dev/console

2004-11-21 Thread Jason Curl
Christopher Faylor wrote: On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: My question, how do I go about investigating what the root cause is? Has anybody else seen similar issues and been able to work around it? I'm stuck and I've never seen the source code to cygwin before. If you

Re: select() read() and write() on /dev/console

2004-11-21 Thread Jason Curl
Christopher Faylor wrote: On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: My question, how do I go about investigating what the root cause is? Has anybody else seen similar issues and been able to work around it? I'm stuck and I've never seen the source code to cygwin before. If you

Re: select() read() and write() on /dev/console

2004-11-19 Thread Christopher Faylor
On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: >My question, how do I go about investigating what the root cause is? Has >anybody else seen similar issues and been able to work around it? I'm >stuck and I've never seen the source code to cygwin before. If you suspect a problem with

select() read() and write() on /dev/console

2004-11-19 Thread Jason Curl
Hello, I think I might have found a bug with the latest version of cygwin (downloaded one night ago 18Nov2004). I am writing a small terminal emulation software package to interface with an embedded device to perform logging. I use the console (/dev/stdin, /dev/stdout) and a serial port (/dev/