OS controls the max number of open file discripters. Is there any method that only a process sets a specific the max number of openfiles and, other p ...
OS controls the max number of open file discripters. Is there any method that only a process sets a specific the max number of openfiles and, other p ...
I was doing some testing on bash on my understanding of file descriptor redirection and discovered that: ((echo STDOUT; echo STDERR >&2;) 3> ...
. Answers to this question are eligible for a +250 reputation bounty. C ...
Given one txt file Im trying to make a C program that copy the content of that into other which name is passed by arguments.The program must read bloc ...
I have code in python which I modify the stdin and stderr, it work succesfuly but at the end of the program it asks for input (for the shell) python c ...
Using Node.js, I can pass a handle/ref for a http request to a child process using this construct: and in the child process, I can do: which is ...
I have two python processes connected by a pipe. The pipe was created with: read_file_descriptor, write_file_descriptor = os.pipe() os.set_blocking(r ...
I want to trigger a callback when data is written on a file descriptor. For this I have set up a pipe and a reader thread, which reads the pipe. When ...
For context, I'm writing an application in Python that needs to poll many hosts continuously, so I create a large number of sockets to communicate wit ...
For some reason I am implementing some specific network protocol similar to STOMP in plain pure Perl. The connection can be either a direct network s ...
OpenLDAP as a server can handle N number of requests because it supports epoll (there is no hard limit). However, when openldap behaves as a client (a ...
I'm studying file descriptors and I'm trying to simulate an input for FD 0 (STDIN). I'm testing in a linux environment. My intention is to write, via ...
I just learned about file descriptors and I was trying some code to understand the way it works. When writing the following program I was expecting th ...
I am trying to write a function that allows users to change file timestamps with nanosecond precision. After some research, I found the function utime ...
I have a process running which used to write to PATH/somefile.log The somefile.log has been deleted and now when I check the /proc/PID/fd/1 I can see ...
I have to do this: scala -version 2>&1 | sed 's/.*version \([0-9]*\.[0-9]*\).*/\1/' Instead of this: scala -version | sed 's/.*version \([0- ...
I have an ARM machine that runs Linux (BusyBox). I need to frequently read the data in this file /sys/class/hwmon/hwmon0/device/in7_input which contai ...
I am trying to fix a bug in an ubuntu 20.04 program where it silently crashes once the maximum opened file descriptors (1024) is exceeded. I noticed t ...
I'm trying to make a script to test a program but I need to use some black magic with file descriptor and redirections. But the problem is that I'm tr ...
I'm reading a unix book and specifically the part about execve() system call. The book says that file descriptors related to opened file are passed to ...