From 1c776beb68f0bdae0eb2446471c43b3abaecf10a Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sun, 8 Jun 2008 21:03:50 +0000 Subject: [PATCH] log an error when failing to go into nonblocking mode --- nethogs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nethogs.cpp b/nethogs.cpp index 5820d26..256d3c4 100644 --- a/nethogs.cpp +++ b/nethogs.cpp @@ -346,10 +346,13 @@ int main (int argc, char** argv) { /* The following code solves sf.net bug 1019381, but is only available * in newer versions (from 0.8 it seems) of libpcap + * + * update: version 0.7.2, which is in debian stable now, should be ok + * also. */ if (dp_setnonblock (newhandle, 1, errbuf) == -1) { - // ERROR + fprintf(stderr, "Error putting libpcap in nonblocking mode\n"); } handles = new handle (newhandle, current_dev->name, handles); }