aboutsummaryrefslogtreecommitdiff
path: root/lib/App
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2020-07-11 20:16:11 -0300
committerMatias Linares <matiaslina@gmail.com>2020-07-11 20:16:11 -0300
commit00ddde1541d68bf1398f7e176082622ecfd27cda (patch)
treec55216a16a65d54d55177b839bcdc2a406fa9cab /lib/App
parent1aa6c4d3658d859e8fa173b67f2e9e5256717021 (diff)
downloadApp-RunForPid-00ddde1541d68bf1398f7e176082622ecfd27cda.tar.gz
Use selective exporting for MAIN
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/RunForPid.pm64
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/RunForPid.pm6 b/lib/App/RunForPid.pm6
index 7d45941..dbaa5a8 100644
--- a/lib/App/RunForPid.pm6
+++ b/lib/App/RunForPid.pm6
@@ -43,7 +43,7 @@ sub list-file-descriptors($pid) {
}
#| Find a pid for a window
-multi sub MAIN() is export {
+multi sub MAIN() is export(:main) {
my $ppid = get-pid;
my @actions = <gdb fd stdout stderr stdout&stderr>;
@@ -121,6 +121,6 @@ multi sub MAIN() is export {
}
#| Execute a command for a child process of $pid
-multi sub MAIN(Int $pid) is export {
+multi sub MAIN(Int $pid) is export(:main) {
say "Running for $pid";
}