File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
io/native/src/main/scala/fs2/io/process Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments