Is there a possibility to know if my program, written in C, is running inside a subshell or a normal shell?
I want to know because I am unable to suspend it when it's running inside a subshell.
Is there a possibility to know if my program, written in C, is running inside a subshell or a normal shell?
I want to know because I am unable to suspend it when it's running inside a subshell.