all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruce Perens <bruce@perens.com>
Cc: Maarten.Vergauwen@esat.kuleuven.ac.be, emacs-devel@gnu.org
Subject: Re: <EMACS> Re: emacs21.2 freezes on hp when calling visible-bell
Date: Wed, 27 Mar 2002 21:22:44 -0800	[thread overview]
Message-ID: <20020328052244.GA8846@perens.com> (raw)
In-Reply-To: <200203280456.g2S4uhL09617@aztec.santafe.edu>

> 4. I added lots of fprintf(stderr,...) stuff to the code in xterm.c
>    (function XTflash) and in this way I could determine that emacs was
>    hanging on the line that says: 
> 	    select (0, NULL, NULL, NULL, &timeout);

Select is being used to pause the process with finer granularity than
sleep(). On return, the contents of timeout are _undefined_. Print
timeout.tv_sec and timeout.tv_usec before the call and see if their value
is sensible. It probably gets clobbered after the first call (or the first
few) and sends you into a very long delay, thus the "hang".

Tell me if that's not it, and I'll find an HP-UX pro.

> I am amazed that gettimeofday can hang.

Since this is emacs run under gdb, it could be a ptrace bug.

	Thanks

	Bruce

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


  reply	other threads:[~2002-03-28  5:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200203201517.QAA07702@demer.esat.kuleuven.ac.be>
2002-03-21  6:08 ` emacs21.2 freezes on hp when calling visible-bell Eli Zaretskii
     [not found] ` <200203221225.g2MCPoE01638@aztec.santafe.edu>
     [not found]   ` <200203221226.NAA05825@barbar.esat.kuleuven.ac.be>
     [not found]     ` <15520.21118.37291.222389@vaire.esat.kuleuven.ac.be>
2002-03-28  4:56       ` <EMACS> " Richard Stallman
2002-03-28  5:22         ` Bruce Perens [this message]
2002-03-28  9:11           ` Maarten Vergauwen

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=20020328052244.GA8846@perens.com \
    --to=bruce@perens.com \
    --cc=Maarten.Vergauwen@esat.kuleuven.ac.be \
    --cc=emacs-devel@gnu.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.