Skip to content

Commit c36b6ae

Browse files
committed
replace daemonize dependency with daemonix
1 parent 77464d4 commit c36b6ae

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ clap_complete = "4.5.62"
2727
clap = { version = "4.5.53", features = ["wrap_help", "derive"] }
2828
clap_complete_nushell = "4.5.10"
2929
clap_complete_fig = "4.5.2"
30-
daemonize = "0.5.0"
30+
daemonix = "0.1"
3131
directories = "6.0.0"
3232
env_logger = "0.11.8"
3333
futures = "0.3.31"

src/bin/rbw-agent/daemon.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ pub fn daemonize(no_daemonize: bool) -> anyhow::Result<Option<StartupAck>> {
4747
.open(rbw::dirs::agent_stderr_file())?;
4848

4949
let (r, w) = rustix::pipe::pipe()?;
50-
let daemonize = daemonize::Daemonize::new()
50+
let daemonize = daemonix::Daemonize::new()
5151
.pid_file(rbw::dirs::pid_file())
5252
.stdout(stdout)
5353
.stderr(stderr);
5454
let res = match daemonize.execute() {
55-
daemonize::Outcome::Parent(_) => {
55+
daemonix::Outcome::Parent(_) => {
5656
drop(w);
5757
let mut buf = [0; 1];
5858
// unwraps are necessary because not really a good way to handle
@@ -61,7 +61,7 @@ pub fn daemonize(no_daemonize: bool) -> anyhow::Result<Option<StartupAck>> {
6161
drop(r);
6262
std::process::exit(0);
6363
}
64-
daemonize::Outcome::Child(res) => res,
64+
daemonix::Outcome::Child(res) => res,
6565
};
6666

6767
drop(r);

0 commit comments

Comments
 (0)