瀏覽代碼

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

own3mall 8 年之前
父節點
當前提交
19815074ff
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 			}