We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a362085 commit 3f44abcCopy full SHA for 3f44abc
apt-file
@@ -35,7 +35,6 @@ use constant {
35
CONFIG_SEARCH_PARSER_DESC_HEADER => 'apt-file::Parser::Check-For-Description-Header',
36
};
37
38
-use POSIX qw(_exit);
39
use Getopt::Long qw/:config gnu_getopt no_ignore_case/;
40
use File::Basename;
41
use AptPkg::Config '$_config';
@@ -252,6 +251,9 @@ sub open_data_pipeline {
252
251
close($to_cat)
253
or error("close write end of xargs pipe: $!");
254
debug(1, 'Input closed, reaping completed children');
+ # We load POSIX here as it take ~0.010s and the children will
255
+ # be vastly longer, so we can "hide" the load time here.
256
+ require POSIX;
257
do {
258
$dead_pid = waitpid(-1, 0);
259
if ($dead_pid > 0) {
0 commit comments