zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: Ville Herva <vherva@niksula.hut.fi>,
	zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: Terminal problem with linux-2.0.34
Date: Wed, 17 Feb 1999 17:03:02 +0100	[thread overview]
Message-ID: <9902171603.AA23593@ibmth.df.unipi.it> (raw)
In-Reply-To: "Ville Herva"'s message of "Wed, 17 Feb 1999 17:37:37 NFT." <19990217173737.D29924@niksula.cs.hut.fi>

Ville Herva wrote:
> Today, I came across a very interesting problem with tha same linux
> machine: the clock() function would always return -1!

clock() isn't used directly in 3.1.5, but times(), which is closely
related, is used.  You can see if the bug shows up there just by typing
`times' (plus two returns :-(), which would typically report a few seconds'
usage.  However, it doesn't look like it should be crucial, though if
there's a kernel bug around, all bets are off.

If system calls are tickling a deeper problem, then apart from times() the
other chief suspect might be getrlimit(), because of its association with
times for processes, though times() is more likely.  A brief trial on
2.0.32 suggests neither /bin/bash (1.14.7(1)) nor /bin/tcsh (6.07.02) use
times() in their initialisation, and only call getrlimit() for
RLIMIT_NOFILE (bash) or only when told to (tcsh) --- zsh calls times()
after every command and reads all the limits when starting.  If you feel
interested enough to comment out all the calls to times(), that should be
harmless enough in terms of side effects.

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


       reply	other threads:[~1999-02-17 16:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19990217173737.D29924@niksula.cs.hut.fi>
1999-02-17 16:03 ` Peter Stephenson [this message]
1999-04-27 21:14   ` [Solved] " Ville Herva
1999-04-28  7:51     ` Peter Stephenson
     [not found] <199902151522.KAA06190@po_box.cig.mot.com>
1999-02-15 16:02 ` Peter Stephenson
     [not found] <19990214112653.A22618@turing.netspan.fi>
1999-02-15  9:58 ` Peter Stephenson
1999-02-15 10:57   ` Ville Herva

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=9902171603.AA23593@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=vherva@niksula.hut.fi \
    --cc=zsh-workers@sunsite.auc.dk \
    /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 public inbox

	https://git.vuxu.org/mirror/zsh/

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