Re: [Hampshire] Is my program detached?

Top Page

Reply to this message
Author: Stephen Pelc
Date:  
To: hampshire
Subject: Re: [Hampshire] Is my program detached?
Bob Dunlop said:

> > I need to determine if my Linux program is running detached,
> > e.g. if it was launched by
> > vfxlin
> > or
> > vfxlin &
>
> Uhm the second process isn't detached it's backgrounded which
> isn't the same thing, it will still have a controlling terminal.
>
> If your question was "Is my program in foreground or background?"
> the following C demo should help.


That did the trick! Many thanks for clearing up my
misunderstandings.

Stephen


--
Stephen Pelc, stephen@???
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeforth.com - free VFX Forth downloads