a.js
:
const waitPort = require('wait-port');
const CDP = require('chrome-remote-interface');
const { spawn } = require('node:child_process');
const path = require('path');
const fs = require('fs');
a.tpl
:
a: <% $a %>
% if [ "$b" ]; then
b: <% $b %>
Subprocesses of async subshells don't inherit SIG_IGN
after trap INT
since bash-4.3-rc2
:
h. Fixed a bug that caused SIGINT and SIGQUIT to not be trappable in asynchronous subshell commands.
Before:
See [the new gist][d].
bash
allows to override SIGINT
in async subprocesses when job control is disabled since 4.3
:
$ bash -c 'sleep 10 & wait'
$ ps -eHo pid,ppid,pgid,stat,ignored,args
PID PPID PGID STAT IGNORED COMMAND