zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@dcs.warwick.ac.uk>
To: hzoli@VNET.IBM.COM (Zoltan T. Hidvegi)
Cc: zefram@dcs.warwick.ac.uk, jf@ugcs.caltech.edu,
	zsh-workers@math.gatech.edu
Subject: Re: process watching?
Date: Tue, 24 Jun 1997 16:58:37 +0100 (BST)	[thread overview]
Message-ID: <18839.199706241558@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <9706232222.AA20208@belgium.fishkill.ibm.com> from "Zoltan T. Hidvegi" at Jun 23, 97 06:22:18 pm

Zoltan T. Hidvegi wrote:
>Why?  What's wrong with the user code implementation?  kill -0 pid can be
>used to test for the presence of the process.  It can be put either to
>precmd or to periodic (periodic is the function name which is executed in
>every $PERIOD seconds, just before a prompt).

There's nothing inherently wrong with doing it that way.  It will work,
and be tolerably efficient.  It's fine for a one-off.  However, there is
the problem that there can only be one periodic function, so if the user
wants to do two periodic things, they must both have the same period
and both be invoked in the periodic function.  For something that is
to be used regularly, it would be nice to extend sched to do periodic
execution of this nature, or otherwise allow multiple independent
periodic functions.

-zefram


      reply	other threads:[~1997-06-24 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-22 22:12 Joe Fouche
1997-06-23 21:03 ` Zefram
1997-06-23 22:22   ` Zoltan T. Hidvegi
1997-06-24 15:58     ` Zefram [this message]

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=18839.199706241558@stone.dcs.warwick.ac.uk \
    --to=zefram@dcs.warwick.ac.uk \
    --cc=hzoli@VNET.IBM.COM \
    --cc=jf@ugcs.caltech.edu \
    --cc=zsh-workers@math.gatech.edu \
    /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).