You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You cannot run netmon and redirect stdout/stderr. This is a desired feature for long running monitoring and if you want to run it as a background task and come back to it for example.
This is because netmon calls printf in C which is buffered by default here in common.h
Adding setvbuf(stdout, NULL, _IONBF, 0); to line 82 of netmon.c seems to do the trick, but I have no idea if this is correct/idiomatic to do so. I don't write C.. So I am submitting this as an ask/issue since I don't feel comfortable submitting PR.
The text was updated successfully, but these errors were encountered:
You cannot run netmon and redirect stdout/stderr. This is a desired feature for long running monitoring and if you want to run it as a background task and come back to it for example.
This is because
netmon
callsprintf
in C which is buffered by default here incommon.h
Adding
setvbuf(stdout, NULL, _IONBF, 0);
to line 82 of netmon.c seems to do the trick, but I have no idea if this is correct/idiomatic to do so. I don't write C.. So I am submitting this as an ask/issue since I don't feel comfortable submitting PR.The text was updated successfully, but these errors were encountered: