fix: mark comp sock as not cloexec
This commit is contained in:
parent
c350099b76
commit
c41c108c4f
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ use tokio::{
|
||||||
use tokio_util::sync::CancellationToken;
|
use tokio_util::sync::CancellationToken;
|
||||||
use tracing::Instrument;
|
use tracing::Instrument;
|
||||||
|
|
||||||
|
use crate::process::mark_as_not_cloexec;
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "snake_case", tag = "message")]
|
#[serde(rename_all = "snake_case", tag = "message")]
|
||||||
pub enum Message {
|
pub enum Message {
|
||||||
|
|
@ -188,6 +190,7 @@ pub fn run_compositor(
|
||||||
.wrap_err("failed to mark compositor unix stream as blocking")?;
|
.wrap_err("failed to mark compositor unix stream as blocking")?;
|
||||||
OwnedFd::from(std_stream)
|
OwnedFd::from(std_stream)
|
||||||
};
|
};
|
||||||
|
mark_as_not_cloexec(&comp).expect("Failed to mark fd as not cloexec");
|
||||||
// Create a new span, marking the upcoming task as `cosmic-comp` with tracing.
|
// Create a new span, marking the upcoming task as `cosmic-comp` with tracing.
|
||||||
let span = info_span!(parent: None, "cosmic-comp");
|
let span = info_span!(parent: None, "cosmic-comp");
|
||||||
let _span = span.clone();
|
let _span = span.clone();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue