Skip to content

Commit 8cfce3c

Browse files
committed
removed PIDFD_NONBLOCK
1 parent 1e9a621 commit 8cfce3c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

io/native/src/main/scala/fs2/io/process/ProcessesPlatform.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ object SyscallBindings {
4646
def syscall(number: CLong, arg1: CLong, arg2: CLong): CLong = extern
4747
}
4848

49-
object PidFd {
49+
object pidFd {
5050
private val SYS_pidfd_open = 434L
51-
val PIDFD_NONBLOCK = 1
5251

5352
def pidfd_open(pid: pid_t, flags: Int): Int = {
5453
val fd = SyscallBindings.syscall(SYS_pidfd_open, pid.toLong, flags.toLong)
@@ -182,7 +181,7 @@ private[process] trait ProcessesCompanionPlatform {
182181

183182
def exitValue: F[Int] =
184183
if (LinktimeInfo.isLinux) {
185-
F.delay(PidFd.pidfd_open(nativeProcess.pid, PidFd.PIDFD_NONBLOCK)).flatMap { pidfd =>
184+
F.delay(pidFd.pidfd_open(nativeProcess.pid, 0)).flatMap { pidfd =>
186185
if (pidfd >= 0) {
187186
fileDescriptorPoller[F].flatMap { poller =>
188187
poller

0 commit comments

Comments
 (0)