diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-25 11:16:49 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-25 11:27:34 +0300 |
commit | 4db1e89561d23564a1ab30c009cf4d3a9f41cb4a (patch) | |
tree | 864a2cde3bb9f13a73e42dcb24aab74a9e855ae7 /src/wydawca.h | |
parent | e106f187a11531c9fe2544bb1b61b1e631741fe1 (diff) | |
download | wydawca-4db1e89561d23564a1ab30c009cf4d3a9f41cb4a.tar.gz wydawca-4db1e89561d23564a1ab30c009cf4d3a9f41cb4a.tar.bz2 |
Fix eventual simultaneous access to the triplet.
The triplet could have been modified by the triplet_remove_file function
invoked from the watcher on file delete or moved_from event, triggered
by the normal install procedure.
* src/wydawca.h (struct wy_triplet): Replace the destroying member with
in_processing.
* src/triplet.c (triplet_enqueue): Set the "in_processing" member.
(remove_triplet_unlocked): Remove the "destroying" flag.
(triplet_remove_file): If in_processing is set, don't touch the triplet.
* src/directive.c (process_directives): Remove the "destroying" flag.
* src/timer.c (timer_stop): Use timer_get to ensure timing is computed.
* src/watcher.c: Remove unused structure member.
Diffstat (limited to 'src/wydawca.h')
-rw-r--r-- | src/wydawca.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wydawca.h b/src/wydawca.h index 40c1c99..825f30b 100644 --- a/src/wydawca.h +++ b/src/wydawca.h @@ -201,7 +201,7 @@ struct wy_triplet { points to a triplet newer than it: */ struct wy_triplet *prev, *next; struct triplet_list *list; - int destroying; /* True if the triplet is being destroyed */ + int in_processing; /* True if the triplet is being processed */ /* User data */ struct wy_user *uploader_list; struct wy_user *uploader; |