all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Milan Zamazal <pdm@brailcom.org>
Subject: Re: Single process output reading
Date: Tue, 17 Aug 2004 13:31:20 +0200	[thread overview]
Message-ID: <87wtzyuhkn.fsf@blackbird.zamazal.org> (raw)
In-Reply-To: m3657jqhd8.fsf@kfs-l.imdomain.dk

>>>>> "KFS" == Kim F Storm <storm@cua.dk> writes:

    KFS> blocking everything including timers isn't very good, but may
    KFS> be acceptable for very short periods of time.

Yes, that's what I need.

    KFS> Here's an (untested) patch that adds a "just-this-one" arg to
    KFS> accept-process-output

Thanks!

Unfortunately, when called as follows:

  (accept-process-output your-process nil nil 1)

Emacs segfaults.  FWIW, the traceback is 

  #0  0x08186fa7 in wait_reading_process_input (time_limit=-1, microsecs=0,
      read_kbd=0, do_display=0) at process.c:4275
  #1  0x08186574 in Faccept_process_output (process=148636188, timeout=0,
      timeout_msecs=138317841, just_this_one=8) at process.c:3781
  #2  0x08154eb8 in Feval (form=138037816) at eval.c:2101
  ...

The problem is that wait_channel is -1 on the segfaulting line:

  FD_SET (wait_channel, &Available);

I don't understand it, since wait_proc->infd is 72 (`pr' says 9) and the
same call without the JUST-THIS-ONE argument

  (accept-process-output your-process nil nil nil)

works fine.

Regards,

Milan Zamazal

-- 
It is the reformer, who is anxious for the reform, and not society, from which
he should expect nothing better than opposition, abhorrence and even mortal
persecution.                                                   -- M. K. Gandhi

  reply	other threads:[~2004-08-17 11:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16  9:21 Single process output reading Milan Zamazal
2004-08-16 14:37 ` Kim F. Storm
2004-08-17 11:31   ` Milan Zamazal [this message]
2004-08-17 11:38     ` Kim F. Storm
2004-08-17 20:42       ` Milan Zamazal
2004-08-18  1:34 ` Richard Stallman
2004-08-18 20:50   ` Milan Zamazal
2004-08-20  4:48     ` Richard Stallman
2004-08-19 11:40   ` Kim F. Storm
2004-08-20  4:49     ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=87wtzyuhkn.fsf@blackbird.zamazal.org \
    --to=pdm@brailcom.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.