Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: jobs -Z example?
- X-seq: zsh-users 13935
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Atom Smasher <atom@xxxxxxxxxxx>
- Subject: Re: jobs -Z example?
- Date: Sun, 15 Mar 2009 21:07:55 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20090315221317.60584.qmail@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090315182446.60806.qmail@xxxxxxxxxxx> <090315124749.ZM5277@xxxxxxxxxxxxxxxxxxxxxx> <20090315204950.89255.qmail@xxxxxxxxxxx> <090315140753.ZM5405@xxxxxxxxxxxxxxxxxxxxxx> <20090315214114.34032.qmail@xxxxxxxxxxx> <090315150857.ZM5564@xxxxxxxxxxxxxxxxxxxxxx> <20090315221317.60584.qmail@xxxxxxxxxxx>
In the last episode (Mar 16), Atom Smasher said:
> On Sun, 15 Mar 2009, Bart Schaefer wrote:
>
> > Oh, there's probably a race condition then. Try this instead:
> >
> > perl -e '$0 = "Test hiding command"; sleep 10;' & sleep 2; ps $!
> >
> > The extra sleep in the parent shell will give perl a bit longer to get
> > going.
> =================
>
> that works.
In case it stops working later, all of the *BSDs provide a setproctitle()
function to cleanly reset what shows up in ps output. Rewriting argv[0] may
cause problems, especially if you started out with a small commandline and
environment, or if you have called setenv/putenv/unsetenv.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author