1. Byron Clark
  2. udiskie

Commits

Thomas Gläßle  committed ffe1813

Catch KeyboardInterrupt to shutdown udiskie daemon nicely

  • Participants
  • Parent commits b066f2e
  • Branches default

Comments (0)

Files changed (1)

File udiskie/cli.py

View file
     # run in daemon mode
     elif run_daemon:
         mounter.mount_all()
-        return daemon.run()
+        try:
+            return daemon.run()
+        except KeyboardInterrupt:
+            pass
 
     # print command line options
     else: