auto_exit_process 1.0.0+1 copy "auto_exit_process: ^1.0.0+1" to clipboard
auto_exit_process: ^1.0.0+1 copied to clipboard

The plugin for killing child processes when the parent process exit.

auto_exit_process #

Auto Exit Process #

The project's purpose is killing child processes when the parent process exited.

The function uses signal on all platforms, and uses job on the Windows platform additionally.

Related links:

Example #

import 'dart:io' as io;
import 'package:auto_exit_process/auto_exit_process.dart' as aep;

void main(List<String> args) async {
  // set [isAutoExit] to [true]
  final io.Process process =
      await aep.Process.start('ping', ['www.google.com'], isAutoExit: true);
  process.stdout.pipe(io.stdout);
  process.stderr.pipe(io.stderr);
  await process.exitCode;
}
2
likes
140
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

The plugin for killing child processes when the parent process exit.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

ffi, path

More

Packages that depend on auto_exit_process