I'm using C++ on linux. I'd like to launch a non blocking process and give the app information using stdin. I don't see a simple way to do so. fork()
is the most straightforward solution but the issue is the app may have a password as an argument and by forking I'll have a long lasting process with the password visible through ps
.
I'd like to execute the process without blocking and give it information i need via stdin but i'm unsure how (I know how to do it in C# but not C/C++)