archlinuxfr / yaourt

[unmaintained] A Pacman frontend with more features and AUR support
601 stars 98 forks source link

Unusual yaourt hanging #355

Open devedge opened 6 years ago

devedge commented 6 years ago

I'm having a problem I don't see any issues for.

Whenever I run a yaourt command that requires sudo (eg., yaourt -Syu), yaourt will hang for 8 - 15 (sometimes up to 30) seconds before prompting for a password. This 'hang' only happens the first time yaourt is called after startup, and subsequent runs are normal. I can't tell if this is something wrong with my groups, wifi, or anything else.

I've attached an strace file of the command being run. Something interesting to note is that about 97% of the processing time is spent on a wait4() system call. It's waiting on a [{WIFEXITED(s) && WEXITSTATUS(s) == 0}] call, but I can't find out why that's hanging.

Is this a bug or is it something wrong with my machine? Here's the output of uname -a: Linux arch 4.13.8-1-ARCH #1 SMP PREEMPT Wed Oct 18 11:49:44 CEST 2017 x86_64 GNU/Linux