处理 SIGHUP 信号
This commit is contained in:
		
							parent
							
								
									7e710a1bf0
								
							
						
					
					
						commit
						259797ed15
					
				|  | @ -43,6 +43,8 @@ async function UpdateTitle() { | |||
| /** 设置时区 */ | ||||
| process.env.TZ = "Asia/Shanghai" | ||||
| 
 | ||||
| process.on("SIGHUP", () => process.exit()) | ||||
| 
 | ||||
| /** 捕获未处理的错误 */ | ||||
| process.on("uncaughtException", error => { | ||||
|   if (typeof logger == "undefined") console.log(error) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue