I'am trying to call a program within my C++ code using system() function. Also I want to set an upper bound for runtime using Timeout. When I combine both using
system(timeout 10s ./app_to_launch)
the host C++ code seems to wait for 10s without launching app_to_launch. Can anyone help me understand what's happening ? Thanks :)