L4Re/departure

Changeset

547:6e89c2c7fb49
2023-03-26 Paul Boddie raw files shortlog changelog graph Restored the intuitive ordering of unsubscribing and closing.
libfsclient/lib/src/file.cc (file)
     1.1 --- a/libfsclient/lib/src/file.cc	Sun Mar 26 01:04:44 2023 +0100
     1.2 +++ b/libfsclient/lib/src/file.cc	Sun Mar 26 01:36:53 2023 +0100
     1.3 @@ -107,12 +107,8 @@
     1.4  {
     1.5    if (l4_is_valid_cap(file->ref))
     1.6    {
     1.7 +    notifier_get_task_notifier()->unsubscribe(file_notifiable(file));
     1.8      ipc_cap_free_um(file->ref);
     1.9 -
    1.10 -    /* Only unsubscribe after actually closing the file and sending any
    1.11 -       notifications. */
    1.12 -
    1.13 -    notifier_get_task_notifier()->unsubscribe(file_notifiable(file));
    1.14    }
    1.15  
    1.16    if (file->memory != NULL)