From fc657b5c23226d15e2e36b06afcf0c0a05e91a98 Mon Sep 17 00:00:00 2001 From: Robin Randhawa Date: Fri, 15 Jan 2021 18:00:45 +0000 Subject: [PATCH] Syscall dependency version bump + Fix build breakage Breakage needed use of WaitFlags. --- Cargo.toml | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 955abf76ae..9975559d18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,4 +3,4 @@ name = "init" version = "0.1.0" [dependencies] -redox_syscall = "0.1" +redox_syscall = "0.2" diff --git a/src/main.rs b/src/main.rs index 4d721e2ca0..1e2bfc2fbc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use std::io::{Read, Error, Result}; use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; use std::path::Path; use std::process::Command; -use syscall::flag::{O_RDONLY, O_WRONLY}; +use syscall::flag::{WaitFlags, O_RDONLY, O_WRONLY}; fn switch_stdio(stdio: &str) -> Result<()> { let stdin = unsafe { File::from_raw_fd( @@ -145,6 +145,6 @@ pub fn main() { loop { let mut status = 0; - syscall::waitpid(0, &mut status, 0).unwrap(); + syscall::waitpid(0, &mut status, WaitFlags::empty()).unwrap(); } }