This question is follow-up for this question.
When the bash command is issued by posix_spawn()
I get the message:
bash: no job control in this shell
I think is because in the fork sequence there is call to the function setsid()
and I don't know how to simulate this operation while using posix_spawn()
.
Is there a way to make new session for the bash process?