added a log line
Costa Tsaousis (ktsaou) committed
May 23, 2014 at 03:01 UTC
cb1db23af1421e8455ca6856662e044fb2ed1ec0
1 file changed
+1
apps_plugin.c
+1
@@ -760,6 +760,7 @@ int update_from_proc(void)
760
if(fdid < 0) continue;
761
if(fdid >= p->fds_size) {
762
// it is small, extend it
763
+ if(debug) fprintf(stderr, "apps.plugin: extending fd memory slots for %s from %d to %d\n", p->comm, p->fds_size, fdid + 100);
764
p->fds = realloc(p->fds, (fdid + 100) * sizeof(int));
765
if(!p->fds) {
766
fprintf(stderr, "apps.plugin: ERROR: cannot re-allocate fds for %s\n", p->comm);