edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] sanity timer
@ 2015-11-04  1:56 Karl Dahlke
  0 siblings, 0 replies; only message in thread
From: Karl Dahlke @ 2015-11-04  1:56 UTC (permalink / raw)
  To: Edbrowse-dev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-04  1:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04  1:56 [Edbrowse-dev] sanity timer Karl Dahlke

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