Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

Consider a situation where you have a file handle and would like to open a new file handle from it. You might want to do this because you need different access rights, or perhaps you want the two ...
Chris_F's user avatar
  • 5,825
0 votes
0 answers
118 views

File-descriptor creation in Linux takes considerable time at 256 and 512 values (~5 to ~15ms on my laptop). Otherwise it finishes avg. in <2us. Also I noticed this problem happens only if its ...
anoopelias's user avatar
  • 9,618
1 vote
1 answer
82 views

TLDR: Python request session transmits data to API successfully for six hours and then suddenly only receives ConnectionErrors. Rate limits and other basic errors shouldn't be the issue as the ...
ölkjamin's user avatar
0 votes
1 answer
68 views

I am trying to know the duration of a distant video file (say mp4). I know already how to get the duration of a local video file: import xml.etree.ElementTree as eltt, subprocess as spr def ...
Rainbobow's user avatar
3 votes
1 answer
74 views

I'm trying to achieve the following: A script shall echo some strings and execute some fast returning commands and I want to see all it's stderr and stdout output on stdout and in syslog (using ...
maikelmeyers's user avatar
1 vote
1 answer
100 views

Here is the scenario, one server handling multiple clients using select() few of the fds are very active(there are very much data coming on few) while other are normal active. Then will other fds ...
anand's user avatar
  • 287
3 votes
1 answer
105 views

Background I am writing a web application on Windows. This application consists of two or more WARs. These WARs make temporary files in processing. Problem In program testing, I've found a ...
SATO Yusuke's user avatar
  • 2,304
1 vote
0 answers
100 views

I have a go application that calling the Windows Management Infrastructure (MI). After some amount of time, I notice that the amount of handle is quite high. I inspect the process with the handles ...
jkroepke's user avatar
  • 140
2 votes
1 answer
254 views

We're using libevent 1.4.14. In our production environment, we've found that our process crashes with a SIGABRT from libevent when the host runs out of a file descriptors. Consider the following #...
Savior's user avatar
  • 3,560
0 votes
1 answer
226 views

I am learning to deal with files in C. Now i try to use read() and write() correctly. So I wrote the following code: #include <stdio.h> #include <fcntl.h> int main(){ [...] write(...
Jojo_aka_Hansen's user avatar
1 vote
1 answer
116 views

Well, i am trying to create a program that reads from a file descriptor piece by piece (defined as BUFFER_SIZE), until it finds a '\n' or the EOF. The problem its i am getting stuck in a infinite loop,...
Rache Bartmoss's user avatar
0 votes
0 answers
131 views

I am creating a driver for an existing python library with a device that communicates via ioctl. The vendor of the device provided some sample C code that I have been using for reference but I am ...
Braedon's user avatar
  • 91
1 vote
2 answers
622 views

We have an Ubuntu server with Nginx. ulimit -n returns 1024 and in /etc/nginx/nginx.conf there are the following settings: user www-data; worker_processes auto; events { worker_connections 1024; }...
PeraMika's user avatar
  • 3,678
0 votes
0 answers
62 views

I am trying to understand how duping works in c. I tried to save the file descriptor to stdin so it can be recovered then used dup2 to use file in.txt as input and then use dup2 to return stdin to its ...
Peter Žaucer's user avatar
0 votes
1 answer
172 views

Suppose we have a file descriptor for a TCP socket. Is there a way to poll for data written to a socket (as opposed to data being available for reading, or the socket being available for writing)? i.e....
InterLinked's user avatar
  • 1,496
0 votes
2 answers
959 views

I deployed an AWS Lambda written in C#, and depending on the input I can see in the console the following error message (truncated): { "Cause": "{\n \"errorType\": \"...
malat's user avatar
  • 12.7k
1 vote
1 answer
89 views

I have code to initialize GPIO and read the button state value from a file descriptor. I only have 3 buttons.The code is very simple. first I initialize 3 gpio and configure them to output. then I ...
Yael 's user avatar
  • 145
0 votes
0 answers
230 views

I am building a high performance application that streams data in from ~1000 different sources of on disk data (aka files) on demand on windows. To minimize latency, I was looking into keeping all ...
yosmo78's user avatar
  • 641
2 votes
1 answer
229 views

I am facing challenges with managing file descriptors in my C program, specifically in the context of my Pipex project. Upon program exit, Valgrind reports that 5 file descriptors are open, with 3 ...
kawzqq's user avatar
  • 25
1 vote
0 answers
256 views

Using asyncio's add_reader() method on Unix systems, I can easily monitor file descriptors, such as pipes, for read availability and invoke a callback once the file is available for reading. For ...
estes's user avatar
  • 11
0 votes
1 answer
1k views

I'm trying to learn how to work with proc and file descriptors. I want to start a process that opens a file, read the same file in parallel through a file descriptor from proc. I tried to do this: #!/...
Иван Мориков's user avatar
1 vote
1 answer
125 views

I found this code here and have several follow up questions. #include <fcntl.h> int main() { // have kernel open two connection to file alphabet.txt which contains letters from a to z int ...
frank880610's user avatar
1 vote
1 answer
42 views

I would like to do: cat a.txt |\ awk '{ if ($1>0) { print $0 } else { print $0 | "cat 1>&3" } }' 1>(awk '{print $0"positive"}') 3>(awk '{[print $...
aerijman's user avatar
  • 2,812
0 votes
2 answers
91 views

I am doing a project for my school where I have to build a shell. The thing is when I got to do the "open [file] [mode]" command for my shell, I have to keep a list of the opened files with ...
jamondebellota's user avatar
0 votes
1 answer
79 views

Before java 17, we could get the FD on a datagram socket like below trick with reflection, in order to set a socket option for SO_PORTREUSE using a kernel API. But the implementation changed in ...
diesel10's user avatar

1
2 3 4 5
30