mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
fuse_main: return signal number
This commit is contained in:
parent
98c0f29876
commit
98cf13a564
1 changed files with 3 additions and 1 deletions
|
|
@ -54,8 +54,10 @@ def fuse_main():
|
|||
if has_pyfuse3:
|
||||
try:
|
||||
trio.run(llfuse.main)
|
||||
except KeyboardInterrupt:
|
||||
return SIGINT
|
||||
except: # noqa
|
||||
return 1 # TODO return signal number if it was killed by signal
|
||||
return -1 # avoid colliding with signal numbers
|
||||
else:
|
||||
return None
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue