From 2559d13d389be05d55a69ef3f205ecb8320f1644 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Sat, 17 Sep 2022 15:17:02 -0400 Subject: [PATCH] Prevent fork. Limits to one PID --- sway/gammastep.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/gammastep.pl b/sway/gammastep.pl index 3d6e80f..69878af 100755 --- a/sway/gammastep.pl +++ b/sway/gammastep.pl @@ -17,7 +17,7 @@ unless ($pid) { open STDOUT, '>>/dev/null'; open STDERR, '>>/dev/null'; - `gammastep -l $lat_lon -b 0.7:0.3`; + exec "exec gammastep -l $lat_lon -b 0.7:0.3"; } sub fetch_lat_lon