use sys.exit() to force buffer flush on exit

This commit is contained in:
NeoTheFox 2021-02-18 11:10:21 +03:00 committed by erjiang
parent eac30ea30e
commit abb78fe810

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
import os
import sys
import time
import signal
import argparse
@ -32,7 +33,7 @@ def main():
args = parser.parse_args()
if args.rules:
make_rules()
os._exit(0)
sys.exit(0)
global CONFIG_FILE_PATH
if args.config is None: