Skip to content

Commit

Permalink
build(deps): bump inotify from 0.10.0 to 0.10.2
Browse files Browse the repository at this point in the history
Bumps [inotify](https://github.com/hannobraun/inotify) from 0.10.0 to 0.10.2.
- [Changelog](https://github.com/hannobraun/inotify-rs/blob/main/CHANGELOG.md)
- [Commits](hannobraun/inotify-rs@v0.10.0...v0.10.2)

---
updated-dependencies:
- dependency-name: inotify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Erdem Meydanli <[email protected]>
  • Loading branch information
dependabot[bot] authored and meerd committed Mar 20, 2024
1 parent 64ed40d commit c592f73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/enclave_proc/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl EnclaveProcSock {
pub fn start_monitoring(&mut self, exit_on_delete: bool) -> NitroCliResult<()> {
let path_clone = self.socket_path.clone();
let requested_remove_clone = self.requested_remove.clone();
let mut socket_inotify = Inotify::init().map_err(|e| {
let socket_inotify = Inotify::init().map_err(|e| {
new_nitro_cli_failure!(
&format!("Failed to initialize socket notifications: {:?}", e),
NitroCliErrorEnum::InotifyError
Expand All @@ -86,7 +86,8 @@ impl EnclaveProcSock {
// - IN_DELETE_SELF: triggered when the socket file inode gets removed.
// - IN_ATTRIB: triggered when the reference count of the file inode changes.
socket_inotify
.add_watch(
.watches()
.add(
self.socket_path.as_path(),
WatchMask::ATTRIB | WatchMask::DELETE_SELF,
)
Expand Down

0 comments on commit c592f73

Please sign in to comment.