From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tetsuo Tsukamoto Newsgroups: gmane.emacs.bugs Subject: open-network-stream in batch mode causes SIGPOLL under GNU/Linux Date: Sat, 01 Oct 2005 03:15:40 +0900 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128104325 27473 80.91.229.2 (30 Sep 2005 18:18:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Sep 2005 18:18:45 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 30 20:18:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ELPQv-0005Wd-EJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Sep 2005 20:16:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ELPQt-0006i4-U0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Sep 2005 14:16:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ELPQn-0006eT-KJ for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2005 14:16:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ELPQe-0006Yf-Cm for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2005 14:16:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ELPQe-0006YF-5U for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2005 14:16:16 -0400 Original-Received: from [211.15.252.164] (helo=jitaku.pasokon) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ELPQF-000215-0z for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2005 14:15:51 -0400 Original-Received: from jitaku.pasokon (jitaku.pasokon [127.0.0.1]) by jitaku.pasokon (8.13.3/8.12.10) with ESMTP id j8UIFeOk005109 for ; Sat, 1 Oct 2005 03:15:40 +0900 Original-Received: (from czkmt@localhost) by jitaku.pasokon (8.13.3/8.13.3/Submit) id j8UIFeNJ005105; Sat, 1 Oct 2005 03:15:40 +0900 Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:13226 Archived-At: Hi, I experienced this strange problem with Emacs 21.3 and 22.0.50 (cvs) under GNU/Linux 2.4.xx or 2.6.xx, glibc 2.3.5. I have no idea if any other operating systems suffer. It will be reproduced by the following procedure. 1. Prepare an emacs lisp file. > % cat foo.el > (open-network-stream "foo" " *foo*" "localhost" "ssh") > foo It seems the fourth arg can be any valid service name. 2. Open a new terminal, or invoke a new shell process by M-x shell. The shell can be bash, zsh or any. 3. Execute the following command. > % emacs -batch -q -no-site-file -l ./foo.el Then Emacs exits before the command finishes, and the following error message appears. > SI/O possible The first "S" is the beginning of error message by Emacs, so this is "I/O possible". 4. When you repeat the same command in the same shell process, SIGPOLL will not occur, which seems to be the expected behavior. > % emacs -batch -q -no-site-file -l ./foo.el > Symbol's value as variable is void: foo I hope the problem will be fixed. -- Tetsuo Tsukamoto