curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: SIGINT vs. SIGTERM?

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Sun, 25 Aug 2024 23:20:04 +0200 (CEST)

On Sun, 25 Aug 2024, Paul Gilmartin via curl-users wrote:

> Running curl from a script I attempt to terminate a long download.
> kill -INT curl has no effect
> kill -TERM curl terminates curl.
>
> Does curl trap SIGINT for some special behavior, leaving the default
> SIGTERM?

SIGINT is the signal that hitting ctrl-c in a terminal sends to the
application like when aborting a slow transfer. I use that frequently with
curl and I have never seen or experienced a problem with that. So no, curl
does not ignore SIGINT.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-08-25