-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DLmaster
authored and
DLmaster
committed
Mar 11, 2024
1 parent
7b789c7
commit 3bcfe6b
Showing
6 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
# [email protected] | ||
|
||
import os | ||
import sys | ||
import subprocess | ||
import atexit | ||
import sqlite3 | ||
|
@@ -116,7 +117,7 @@ def cleanup(): | |
|
||
#读取运行情况 | ||
if os.path.exists("state/RUNNING"): | ||
exit() | ||
os._exit(1) | ||
#标记当前正在运行 | ||
with open("state/RUNNING","w",encoding="utf-8") as f: | ||
print("RUNNING",file=f) | ||
|
@@ -173,4 +174,4 @@ def cleanup(): | |
if os.path.exists("state/BEGIN"): | ||
with open("state/END","w",encoding="utf-8") as f: | ||
print("END",file=f) | ||
exit() | ||
sys.exit(0) |