If i do echo "Script log message" in my netifd proto script then in it
first call i see in logread:
daemon.notice netifd: test0 (758): Script log message
But ! on next calls i see no log messages !
Only first script call add it stdout message to log.
I found that the problem in main.c-> netifd_delete_process.
We just have to add:
memset(&proc->log, 0x0, sizeof(proc->log));
to the end of this function and then script log messages a successfully
reached.
Please fix netifd->main.c source.
--- ./a/main.c 2014-04-26 14:28:38.000000000 +0400
+++ ./b/main.c 2014-04-26 17:14:12.561686250 +0400
@@ -59,6 +59,7 @@
list_del(&proc->list);
ustream_free(&proc->log.stream);
close(proc->log.fd.fd);
+ memset(&proc->log, 0x0, sizeof(proc->log));
}
void
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel