cURL / Mailing Lists / curl-users / Single Mail

curl-users

SIGPIPE downloading with redirection

From: Lluís Batlle i Rossell <viric_at_viric.name>
Date: Sun, 6 Jan 2013 22:05:48 +0100

Hello,

I get SIGPIPE in curl (so exit code 141 in linux), if I take a long download
with a redirection. Curl keeps the former connection open, while it downloads,
and at the end it tries to write something to that former connection. The file
downloads fine, but the exit code isn't 0.

The way to reproduce it (the limit-rate is to mimic my internet link):
$ curl --limit-rate 250k -L \
    http://github.com/raspberrypi/firmware/archive/4ade27942e.tar.gz > /dev/null

I'm using curl 7.28.0, and tried it on two different gnu/linuces, arm, x86_64
and i686, reproduced everywhere.

Regards,
Lluís.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-06