sigpipe Questions
3
Solved
I'm coding a C++ SSL Server for TCP Connections on Linux.
When the program uses SSL_write() to write into a closed pipe, a SIGPIPE-Exception gets thrown which causes the program to shut down. I kno...
5
Solved
Setting the bash pipefail option (via set -o pipefail) allows the script to fail if a non-zero error is caught where there is a non-zero error in any step of a pipe.
However, we are running into S...
Untutored asked 17/3, 2014 at 20:35
10
Solved
I have a very simple Python 3 script:
f1 = open('a.txt', 'r')
print(f1.readlines())
f2 = open('b.txt', 'r')
print(f2.readlines())
f3 = open('c.txt', 'r')
print(f3.readlines())
f4 = open('d.txt', '...
Exploitation asked 8/1, 2013 at 3:18
0
I'm using a python package with python subprocessing command. When I qsub several jobs in parallel, it shows the error: subprocess.CalledProcessError: died with
multiprocessing.pool.RemoteTraceba...
Recondite asked 8/4, 2019 at 7:5
2
Solved
#define SIG_IGN (void (*)(int))1
#define SIG_HOLD (void (*)(int))5
#define SIG_ERR ((void (*)(int))-1)
I know what (void (*)(int)) means: cast unknown_name into pointer to function (int) returnin...
2
Solved
I am updating an old script and came across a pattern I am unfamiliar with:
# NOTE The | : always returns true so the <cmd> doesn't fail
<cmd> | :
I've only ever seen this pattern us...
1
Solved
There are a few questions related to this issue, but none of them actually help me understand what is going on.
The full error:
SIGPIPE: writing to a closed pipe/socket/fd (probably the client ...
1
Solved
While I browsed posts, I ran into this example below on here, It is saying proc1.stdout.close() is needed to be called for appropriate exit of proc1, generating SIGPIPE.
import subprocess
proc1 ...
Southerland asked 28/12, 2017 at 5:4
2
Solved
The following snakemake script:
rule all:
input:
'test.done'
rule pipe:
output:
'test.done'
shell:
"""
seq 1 10000 | head > test.done
"""
fails with the following error:
snakemake -...
5
Solved
I write a client program based on posix sockets. The program creates multiple threads and is going to lock the server. But during debug in gdb time the program gives an info (error)
(gdb) n
Prog...
10
Solved
I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command and (depending on the command) sends a reply.
The problem is that the client may have no...
Gildus asked 20/9, 2008 at 13:43
3
Solved
Is it possible to check if a pipe is broken before trying to write/read to it, so I can just skip it and continue with the program?
I'm utilizing a while loop to write to pipes communicating...
3
Solved
I have a client-server application where each side communicate with the other via TCP socket.
I properly establish the connection and then I crash the server BEFORE any data is written on the sock...
4
Solved
This program generates SIGPIPE after piping it to "head -n 1", after a random time. I understand that because we're feeding more to "head -n 1" after the first line, we would expect it to generate ...
1
I am experiencing a SIGPIPE error in my Xcode Project. This error has been started showing since one week before. If I commented this method call : [self configureBump]; everything works fine. I ha...
Rome asked 20/12, 2012 at 5:29
3
Solved
I'm working with some code that needs to be safe against killing the caller due to SIGPIPE, but the only socket writes it's performing are going to datagram sockets (both UDP and Unix domain datagr...
1
© 2022 - 2024 — McMap. All rights reserved.