When outputting to a file, typing ctrl+c exits the program without calling fclose(), leading to loss of traces in the output file. Let's intercept ctrl+c and exit gently, calling fclose().
All the files in this directory, unless stated otherwise, are released under the terms of the main license of OpenAirInterface. See the file LICENSE in the top directory.