Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

FS#62768 - Interrupt Signal (Ctrl-C) not taken into account during host resolving

Attached to Project: Pacman
Opened by Ma Jiehong (jiehong) - Tuesday, 28 May 2019, 17:13 GMT
Task Type Bug Report
Category Backend/Core
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 5.1.3
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Summary and Info:
When hosts resolving takes a long time (because the network has been lost for example), interrupt signals (Ctrl-C) is displayed (^C),
but only taken into account at the end of the resolve time-out (10s).

Steps to Reproduce:
1. Make sure you have a package to update;
2. Disable your internet connection;
3. Run `pacman -Su`;
4. After the first host has a resolve time-out, hit Ctrl-C
5. See that "^C" is displayed, but also that "Interrupt signal received" is only displayed at the end of the time-out.

Something like that:

```
error: failed retrieving file 'python-pygments-2.4.2-1-any.pkg.tar.xz' from mirror.puzzle.ch : Resolving timed out after 10000 milliseconds
^C
(about 10 seconds later)
Interrupt signal received
```

Expected:

Interrupt Signal should effectively stop pacman in the middle of the host resolution (especially if the time out has been increased).
This task depends upon

Loading...