Subject: | background: use POSIX always loads and imports all |
The background sub uses POSIX, which exports everything by default.
Since only setsid is used, is used conditionally, and it's
used fully qualified, this seems undesirable.
sub background {
# ...
use POSIX;
if ( $^O !~ /MSWin32/ ) {
POSIX::setsid()
or die "Can't start a new session: $!";
}
$self->run();
}
Maybe instead:
eval 'use POSIX ()';
Brad