I'm writing a program in C, in this model:
//Block 1: Does a lot of operations, including debug messages
strcpy(call, "xdg-open ");
strcat(call, url);
system(call);
//Block 2: Does a lot of operations, including debug messages
After the invocation of system()
, it looks like this function takes control of stdout and Block 2 debug messages aren't printed anylonger, only Block 1 messages.
Does anybody know what is happening and what might be the solution for it?