about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/ProcessPipe.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/ProcessPipe.pm b/lib/PublicInbox/ProcessPipe.pm
index 400a22f3..e540dc22 100644
--- a/lib/PublicInbox/ProcessPipe.pm
+++ b/lib/PublicInbox/ProcessPipe.pm
@@ -5,7 +5,6 @@
 package PublicInbox::ProcessPipe;
 use strict;
 use v5.10.1;
-use PublicInbox::DS qw(dwaitpid);
 use Carp qw(carp);
 
 sub TIEHANDLE {
@@ -48,7 +47,8 @@ sub _close ($;$) {
                         carp "waitpid($pid, 0) = $wp, \$!=$!, \$?=$?";
                 }
         } else { # caller just undef-ed it, let event loop deal with it
-                dwaitpid $pid, $cb, $arg;
+                require PublicInbox::DS;
+                PublicInbox::DS::dwaitpid($pid, $cb, $arg);
         }
         $ret;
 }