edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] sanity timer
Date: Tue, 03 Nov 2015 20:56:03 -0500	[thread overview]
Message-ID: <20151003205603.eklhad@comcast.net> (raw)

With the recent infinite loop, I was wondering if it's worth a few lines of code,
and it wouldn't be very many, to put a timer around javascript execution
when it runs a script or function.
Put alarm(5) before and alarm(0) after.
Even under load js shouldn't require 5 seconds of raw cpu
to do its calculations,unless something is wrong.
This is unix only but that's ok, it's just a backstop
for something that should never happen.
Or you can just get tired of waiting and hit ^c which is the way it works now.

Karl Dahlke

                 reply	other threads:[~2015-11-04  1:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20151003205603.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /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.
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 NNTP newsgroup(s).