unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Freenet.DE>
To: Andreas Schwab <schwab@suse.de>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; source of warning in *shell* buffer
Date: Fri, 19 Oct 2007 16:27:22 +0200	[thread overview]
Message-ID: <98D3E112-2FC1-4065-9401-6179A3EF27D7@Freenet.DE> (raw)
In-Reply-To: <jeejfr2rx2.fsf@sykes.suse.de>


Am 19.10.2007 um 14:46 schrieb Andreas Schwab:

> Peter Dyballa writes:
>
>> When I invoke M-x shell the new buffer starts with:
>>
>> 	Warning: no access to tty (Bad file descriptor).
>> 	Thus no job control in this shell.
>>
>> Where is the source for these messages?
>
> They are most likely coming from the shell.

Ahh, strings reveals them in tcsh! Except the 'Bad file descriptor'  
string, which was found in:

	./src/w32.c:2952:  WSAEBADF                , "Bad file descriptor",

I am sure that I am not using Losedows ...

>
>> What are the criterions for this warning?
>
> Probably the shell could not open /dev/tty, ie. it has no controlling
> terminal.  That happens when the process is using pipes instead of  
> ptys.

Indeed. Tty does not return a pty's name, and lsof shows that FILE  
structs are in use:

	COMMAND  PID USER   FD      NAME
	tcsh    9977 pete   16r     0x04bb9380 file struct, ty=0x6, op=0x3823ec
	tcsh    9977 pete   17w     0x04791b40 file struct, ty=0x6, op=0x3823ec
	tcsh    9977 pete   18w     0x04bb9fb0 file struct, ty=0x6, op=0x3823ec
	tcsh    9977 pete   19r     0x0529d4c0 file struct, ty=0x6, op=0x3823ec

>
>> Which elements are necessary for job control?
>
> The shell needs to be able to manipulate the process group of the
> controlling terminal.

Is this really needed in the *shell* buffer? Term offers a more  
complete terminal emulation. In *terminal* buffer I cannot see the  
warnings and tty returns a pty's name.

--
Mit friedvollen Grüßen

   Pete

The day Microsoft makes something that doesn't suck
is the day they start selling vacuum cleaners.
                                     Ernest Jan Plugge

  reply	other threads:[~2007-10-19 14:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 12:17 23.0.50; source of warning in *shell* buffer Peter Dyballa
2007-10-19 12:46 ` Andreas Schwab
2007-10-19 14:27   ` Peter Dyballa [this message]
2007-10-19 16:06     ` Eli Zaretskii
2007-10-19 22:55       ` Peter Dyballa
2007-10-19 16:18     ` Jason Rumney
2007-10-19 14:13 ` Stefan Monnier
2007-10-19 15:12   ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98D3E112-2FC1-4065-9401-6179A3EF27D7@Freenet.DE \
    --to=peter_dyballa@freenet.de \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).