Re: [OpenWrt-Devel] uclient & libubox: handling SIGPIPE / EPIPE

2015-01-21 Thread John Crispin
On 21/01/2015 11:32, Rafał Miłecki wrote: > I'm trying to use uclient to monitor my home network servers querying > http://ip/status . So far I was using bash + curl, but I'm trying to > learn libubox now. > > So today I accidentally queried some unknown machine (random IP) and > my app crashed.

[OpenWrt-Devel] uclient & libubox: handling SIGPIPE / EPIPE

2015-01-21 Thread Rafał Miłecki
I'm trying to use uclient to monitor my home network servers querying http://ip/status . So far I was using bash + curl, but I'm trying to learn libubox now. So today I accidentally queried some unknown machine (random IP) and my app crashed. What has happened: 1) When I first called "uclient_re