Skip to content

Commit b98b4f9

Browse files
committed
fix(sidecar): restore missing blank lines in setup_daemon_process
unix.rs and windows.rs were missing a blank line before Ok(()) in setup_daemon_process, diverging from origin/main.
1 parent cd9c52d commit b98b4f9

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

datadog-ipc/src/platform/windows/sockets.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ use windows_sys::Win32::Storage::FileSystem::{
5454
ReadFile, WriteFile, FILE_FLAG_FIRST_PIPE_INSTANCE, FILE_FLAG_OVERLAPPED, PIPE_ACCESS_DUPLEX,
5555
};
5656
use windows_sys::Win32::System::Pipes::{
57-
ConnectNamedPipe, CreateNamedPipeA, PeekNamedPipe, SetNamedPipeHandleState,
58-
PIPE_NOWAIT, PIPE_READMODE_MESSAGE, PIPE_TYPE_MESSAGE, PIPE_UNLIMITED_INSTANCES, PIPE_WAIT,
57+
ConnectNamedPipe, CreateNamedPipeA, PeekNamedPipe, SetNamedPipeHandleState, PIPE_NOWAIT,
58+
PIPE_READMODE_MESSAGE, PIPE_TYPE_MESSAGE, PIPE_UNLIMITED_INSTANCES, PIPE_WAIT,
5959
};
6060
use windows_sys::Win32::System::Threading::{
6161
CreateEventA, SetEvent, WaitForMultipleObjects, WaitForSingleObject, INFINITE,

datadog-sidecar/src/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ pub fn setup_daemon_process(
152152
.process_name("datadog-ipc-helper")
153153
.pass_fd(unsafe { OwnedFd::from_raw_fd(listener.into_raw_fd()) })
154154
.stdin(Stdio::Null);
155+
155156
Ok(())
156157
}
157158

datadog-sidecar/src/windows.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ pub fn setup_daemon_process(
113113
))
114114
.pass_handle(owned)
115115
.stdin(Stdio::Null);
116+
116117
Ok(())
117118
}
118119

0 commit comments

Comments
 (0)