Pārlūkot izejas kodu

Fix for https://github.com/OpenGamePanel/OGP-Agent-Linux/issues/15

own3mall 8 gadi atpakaļ
vecāks
revīzija
19815074ff
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      ogp_agent.pl

+ 1 - 1
ogp_agent.pl

@@ -1687,7 +1687,7 @@ sub start_file_download
 				print FILE "rm -f $destination/postinstall.sh\n";
 				close FILE;
 				chmod 0755, $postcmdfile;
-				my $screen_id = create_screen_id("post_script", $pid);
+				my $screen_id = create_screen_id("post_script", $$);
 				my $cli_bin = create_screen_cmd($screen_id, "bash $postcmdfile");
 				system($cli_bin);
 			}