如何使用PHP运行和外部连续运行C程序?

I have code PHP code in my web app that runs an executable c program that I have. The c program constantly runs and outputs data to an output file.

I'm currently using this line to run the program

exec("/var/www/mcc-libhid/test-usb20X f &");

The problem is that since the program never ends, I get stuck on a loading page on my web app. I'd like my php code to start running this program and quickly return. Not wait for some end of it.

Is there an easy solution for this?

I found the solution to my question!

Here is the updated line that did what I wanted.

exec("/var/www/mcc-libhid/test-usb20X f >/dev/null &");