File tree Expand file tree Collapse file tree
test/commands/lightning/dev/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ import { type ChildProcess } from 'node:child_process' ;
1718import treeKill from 'tree-kill' ;
1819
1920/**
2021 * Clean up a server process and all its child processes. Uses tree-kill so
2122 * descendant node processes (e.g. LWR workers) are terminated.
2223 */
23- export function killServerProcess ( serverProcess : { pid ?: number } | null | undefined ) : void {
24+ export function killServerProcess ( serverProcess : ChildProcess | null | undefined ) : void {
2425 if ( ! serverProcess ?. pid ) return ;
2526 const pid = serverProcess . pid ;
2627 try {
28+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
2729 treeKill ( pid , 'SIGKILL' ) ;
2830 } catch ( error ) {
2931 const err = error as NodeJS . ErrnoException ;
You can’t perform that action at this time.
0 commit comments