How do I know if an C program's executable is run in foreground or background ?

Posted by Saradhi on Stack Overflow See other posts from Stack Overflow or by Saradhi
Published on 2010-03-11T12:57:35Z Indexed on 2010/03/11 20:29 UTC
Read the original article Hit count: 85

Filed under:
|
|
|

In my C program I want to know if my executable is run in foreground like this

$./a.out

or like this

$./a.out &

© Stack Overflow or respective owner

Related posts about linux

Related posts about c