K
K
kizijo2019-06-07 14:29:00
linux
kizijo, 2019-06-07 14:29:00

Is it normal that when interrupting rsync via ctrl+c it writes "Broken pipe" in the console?

Good afternoon.
I was recently copying data to an external hard drive on my Debian via the terminal and at some point needed to stop the process. I pressed ctrl+c- the process was completed, but among other inscriptions of the ball, the phrase "Broken pipe".
Did I do everything correctly, so completing the process? Why does this message pop up and what does it say?
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Antony, 2019-06-07
@kizijo

In Linux, there are such similar things as a named pipe (named pipe) and an unnamed pipe (pipe). (Google file types in Linux for more details) To be honest, I don’t remember whether these are different entities or not, in this case, for simplicity, we will assume that they are not.
Specifically, this message means that your application is trying to read / write from / to a pipe that does not exist.
Probably rsync uses named or unnamed pipes for its work. (for example, to transfer something between the applications it runs or its child threads.) At the moment when you press Ctrl-C, the system starts to terminate the process and release its resources (as well as kill what it started). Probably one of the child processes running on the pipe tried to do something with it while they were still alive and the pipe's owner is no longer there (and hence the pipe was freed when the resources of the owner process were freed).
What managed to be recorded on the disc - then managed. What did not have time to write to the disc - it did not. Nothing else will happen.

R
Ruslan Fedoseev, 2019-06-07
@martin74ua

ctrl-c - crash. What is it that worries you?

V
vlarkanov, 2019-06-07
@vlarkanov

This is the norm (s).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question