mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Remove NOTIFY_FD after reading it
This commit is contained in:
@@ -323,6 +323,7 @@ fn notify_fd() -> anyhow::Result<()> {
|
||||
Err(env::VarError::NotPresent) => return Ok(()),
|
||||
Err(err) => return Err(err.into()),
|
||||
};
|
||||
env::remove_var("NOTIFY_FD");
|
||||
let mut notif = unsafe { File::from_raw_fd(fd) };
|
||||
notif.write_all(b"READY=1\n")?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user