assistant: Detect when repository has been deleted or moved, and automatically shut down the assistant. Closes: #761261
This commit is contained in:
parent
4e3d176b1b
commit
09e20c3827
4 changed files with 24 additions and 6 deletions
|
@ -53,6 +53,10 @@ postRestart url = do
|
|||
liftIO . sendNotification . globalRedirNotifier =<< getDaemonStatus
|
||||
void $ liftIO $ forkIO $ do
|
||||
threadDelaySeconds (Seconds 120)
|
||||
terminateSelf
|
||||
|
||||
terminateSelf :: IO ()
|
||||
terminateSelf =
|
||||
#ifndef mingw32_HOST_OS
|
||||
signalProcess sigTERM =<< getPID
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue