• Kirill Smelkov's avatar
    wcfs: Shutdown WatchLink on any pin error · 007d53db
    Kirill Smelkov authored
    If a pin misbehaves or there is IO error or anything else, we want to
    stop all communication on the watchlink, cancel on in-flight pin
    handlers, and (TODO) kill the client with SIGBUS.
    
    This patch organizes WatchLink shutdown on any pin error.
    This functionality is indirectly tested by test_Wcfs_watch_robust and
    will be also indirectly tested by faultyprotection tests.
    
    It would be good to have dedicated tests probably, but that is,
    hopefully, TODO.
    
    /reviewed-by @levin.zimmermann
    /reviewed-on nexedi/wendelin.core!18
    007d53db
wcfs.go 85.1 KB