Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/fspy/src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ impl SpyImpl {
#[cfg(target_os = "linux")]
let supervisor = supervise::<SyscallHandler>().map_err(SpawnError::Supervisor)?;

#[cfg(not(target_env = "musl"))]
let (ipc_channel_conf, ipc_receiver) =
channel(SHM_CAPACITY).map_err(SpawnError::ChannelCreation)?;
#[cfg(target_env = "musl")]
let (_, ipc_receiver) = channel(SHM_CAPACITY).map_err(SpawnError::ChannelCreation)?;

let payload = Payload {
#[cfg(not(target_env = "musl"))]
ipc_channel_conf,

#[cfg(target_os = "macos")]
Expand Down
2 changes: 2 additions & 0 deletions crates/fspy_shared_unix/src/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ use bincode::{Decode, Encode, config::standard};
use bstr::BString;
#[cfg(not(target_env = "musl"))]
use fspy_shared::ipc::NativeStr;
#[cfg(not(target_env = "musl"))]
use fspy_shared::ipc::channel::ChannelConf;

#[derive(Debug, Encode, Decode)]
pub struct Payload {
#[cfg(not(target_env = "musl"))]
pub ipc_channel_conf: ChannelConf,

#[cfg(not(target_env = "musl"))]
Expand Down
Loading