c – Is it possible to exchange programs displayed in stdout?

I would like to write a program in C that forks then execs three different processes.

Then two of the programs will be suspended and only one of the three will be broadcast to the public. stdout. It is possible to later suspend the running process on stdout, resume one of the other suspended processes and display it on stdout instead of?

How to tell my Apache server running in a Docker container to write logs on stdout

I've been trying to point my logs to / proc / 1 / fd / 1 but it's impossible to access the directory and if I'm using / proc / self / fd / 1 nothing is n / a written on my stdout