()
| 90 | |
| 91 | useEffect(() => { |
| 92 | const handleSigint = () => { |
| 93 | if (exitWarningTimeoutRef.current) { |
| 94 | clearTimeout(exitWarningTimeoutRef.current) |
| 95 | exitWarningTimeoutRef.current = null |
| 96 | } |
| 97 | |
| 98 | exitCli() |
| 99 | } |
| 100 | |
| 101 | process.on('SIGINT', handleSigint) |
| 102 | return () => { |