Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 29b5e73

Browse files
Disable copying of inotify_event
inotify_event's last member is flexible array member, where the real size of the array is contained in `len` field. However, D's runtime will not copy this field at all, producing garbage in the copied instances. This disables automatic copying of this struct.
1 parent c7182eb commit 29b5e73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/sys/linux/sys/inotify.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ struct inotify_event
1818
uint cookie;
1919
uint len;
2020
char[0] name;
21+
22+
@disable this(this);
2123
}
2224

2325
enum: uint

0 commit comments

Comments
 (0)