Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.os.linux.misc Subject: Re: The joy of pipes Date: Tue, 19 Nov 2024 21:55:14 -0000 (UTC) Organization: A noiseless patient Spider Lines: 12 Message-ID: References: <20241112111426.00007245@gmail.com> <20241114160907.0000252b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 19 Nov 2024 22:55:14 +0100 (CET) Injection-Info: dont-email.me; posting-host="c39ce09e5b4a7cfb75b87dd533b9fcc6"; logging-data="2156416"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PrCMCejr8DiOi09AyEBMy" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:laGe2KCGStC8y4/J7nkhIKA7hwA= Bytes: 2158 On Tue, 19 Nov 2024 09:57:47 +0000, Pancho wrote: > That has a knock on effect that I don't really > understand the behaviour of programs which do use pipes. I'm presuming > bash commands uses pipes. As should be apparent by now, pipes are more than a substitute for temporary files, they are an IPC/synchronization mechanism. Consider this C program , and see how a pipe is used to send a termination notification from a worker thread back to the main thread.