zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Paul Lew <paullew@cisco.com>, zsh-users@sunsite.auc.dk
Subject: Re: TRAPNAL with TMOUT problem
Date: Mon, 21 Aug 2000 10:48:08 -0700	[thread overview]
Message-ID: <000821104808.ZM29840@candle.brasslantern.com> (raw)
In-Reply-To: <14752.50467.89781.100331@paullew-ultra.cisco.com>

On Aug 20, 10:58pm, Paul Lew wrote:
> Subject: TRAPNAL with TMOUT problem
> 
> The 'idle' time for command 'w' is now affected by the invocation of
> TRAPALRM function, i.e., if I defined TMOUT to be 3600, zsh will never
> show idle more than 60 minutes.

The "idle" time is nothing more than the difference between the access
time and the modification time of the tty device file for the associated
terminal.  I have a TMOUT/TRAPALRM that updates the title bar of my xterm
every 60 seconds, yet my w output still shows me as having been idle all
weekend on terminals I haven't touched yet this morning.

Probably what's happening is that the terminal is getting "accessed" when
the background job runs.  (My traps use only builtins, so no new job group
needs to become associated with the terminal.)

Try starting the background jobs with stdin/out/err all redirected and a
trailing &! token to "disown" them.  I'm not certain that wll prevent zsh
from associating the job with the terminal, but it's easy to test.


  reply	other threads:[~2000-08-21 17:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-21  5:58 Paul Lew
2000-08-21 17:48 ` Bart Schaefer [this message]
     [not found]   ` <14754.42242.721509.918727@paullew-ultra.cisco.com>
2000-08-22 18:24     ` Bart Schaefer
     [not found]       ` <14757.19686.238318.996093@paullew-ultra.cisco.com>
2000-08-24 17:27         ` Bart Schaefer

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=000821104808.ZM29840@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=paullew@cisco.com \
    --cc=zsh-users@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).