ソースを参照

Roll serial number over.

Chris McDonough 18 年 前
コミット
2fe46cd073
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/supervisor/process.py

+ 3 - 0
src/supervisor/process.py

@@ -14,6 +14,7 @@
 
 import asyncore
 import os
+import sys
 import time
 import errno
 import shlex
@@ -632,6 +633,8 @@ _num = 0
 def new_serial():
     global _num
     val = _num
+    if _num == sys.maxint:
+        _num = -1
     _num = _num + 1
     return val