about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-10 12:15:00 +0000
committerEric Wong <e@80x24.org>2021-01-12 03:51:42 +0000
commitb90e8d6e02852c47d0c08198d8c7afb5dbe008d7 (patch)
treeea3b399fba66acbd5b67bb5d1b983340ddcc17d3 /t
parentf4cf089b427d07bedb80fcfbe79d84234ad92a75 (diff)
downloadpublic-inbox-b90e8d6e02852c47d0c08198d8c7afb5dbe008d7.tar.gz
This lets us call dwaitpid long before a process exits
and not have to wait around for it.

This is advantageous for lei where we can run dwaitpid on the
pager as soon as we spawn it, instead of waiting for a client
socket to go away on DESTROY.
Diffstat (limited to 't')
-rw-r--r--t/spawn.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/spawn.t b/t/spawn.t
index 891a3702..558afc28 100644
--- a/t/spawn.t
+++ b/t/spawn.t
@@ -61,7 +61,7 @@ elsif ($pid > 0) {
         select(undef, undef, undef, 0.01) while 1;
 }
 EOF
-        my $oldset = PublicInbox::Sigfd::block_signals();
+        my $oldset = PublicInbox::DS::block_signals();
         my $rd = popen_rd([$^X, '-e', $script]);
         diag 'waiting for child to reap grandchild...';
         chomp(my $line = readline($rd));
@@ -70,7 +70,7 @@ EOF
         ok(kill('CHLD', $pid), 'sent SIGCHLD to child');
         is(readline($rd), "HI\n", '$SIG{CHLD} works in child');
         ok(close $rd, 'popen_rd close works');
-        PublicInbox::Sigfd::sig_setmask($oldset);
+        PublicInbox::DS::sig_setmask($oldset);
 }
 
 {