tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: $$ broken??



On Mon, Mar 25, 2013 at 01:22:05AM -0400, Mouse wrote:
> I have a weird situation which looks as though $$ is broken in sh.
...
> The real question I have here is, why is $$ in rc.local giving me the
> wrong value?

It might be that some shell syntax that runs as a child doesn't
update $$. Things like loops with redirections and script with (...).

> Perhaps more importantly, what can I do to fix it?  Failing that, is
> there some other tool I can use to give me the correct PID as a
> workaround?

Maybe: syctl proc.curproc.rlimit....

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index