Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #150: Arcserve crashed the server again.


comp / comp.unix.programmer / Re: Faking a TTY on a pipe/socketpair

SubjectAuthor
* Faking a TTY on a pipe/socketpairMuttley
+* Re: Faking a TTY on a pipe/socketpairKenny McCormack
|`* Re: Faking a TTY on a pipe/socketpairMuttley
| +- Re: Faking a TTY on a pipe/socketpairWolfgang Agnes
| `* Re: Faking a TTY on a pipe/socketpairKenny McCormack
|  `- Re: Faking a TTY on a pipe/socketpairMuttley
+* Re: Faking a TTY on a pipe/socketpairKaz Kylheku
|+- Re: Faking a TTY on a pipe/socketpairMuttley
|`* Re: Faking a TTY on a pipe/socketpairEric Pozharski
| +- Re: Faking a TTY on a pipe/socketpairScott Lurndal
| `* Re: Faking a TTY on a pipe/socketpairKaz Kylheku
|  `- Re: Faking a TTY on a pipe/socketpairEric Pozharski
+* Re: Faking a TTY on a pipe/socketpairJanis Papanagnou
|+- Re: Faking a TTY on a pipe/socketpairMuttley
|`* Re: Faking a TTY on a pipe/socketpairRichard Kettlewell
| `- Re: Faking a TTY on a pipe/socketpairMuttley
`* Re: Faking a TTY on a pipe/socketpairRichard L. Hamilton
 +* Re: Faking a TTY on a pipe/socketpairMuttley
 |`* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | +* Re: Faking a TTY on a pipe/socketpairMuttley
 | |`* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | | +* Re: Faking a TTY on a pipe/socketpairKenny McCormack
 | | |`* Re: Faking a TTY on a pipe/socketpairDan Cross
 | | | `* Re: Faking a TTY on a pipe/socketpairKenny McCormack
 | | |  `- Re: Faking a TTY on a pipe/socketpairMuttley
 | | +- Re: Faking a TTY on a pipe/socketpairNicolas George
 | | `* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  +* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  |+- Re: Faking a TTY on a pipe/socketpairScott Lurndal
 | |  |+* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||`* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  || +* Re: Faking a TTY on a pipe/socketpairJohn Ames
 | |  || |`- Re: Faking a TTY on a pipe/socketpairScott Lurndal
 | |  || `* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||  +* Windows-think and systemd (Was: Something completely unrelated to what we're yapKenny McCormack
 | |  ||  |+* Re: Windows-think and systemd (Was: Something completely unrelated to what we'reMuttley
 | |  ||  ||`* Re: Windows-think and systemd (Was: Something completely unrelated to what we'reRichard L. Hamilton
 | |  ||  || `- AIX (was Re: Windows-think and systemd)Janis Papanagnou
 | |  ||  |+- Re: Windows-think and systemd (Was: Something completely unrelated to what we'reKaz Kylheku
 | |  ||  |`- Re: Windows-think and systemd (Was: Something completely unrelated to what we'reJim Jackson
 | |  ||  +- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||  `- Re: Faking a TTY on a pipe/socketpairRichard L. Hamilton
 | |  |+- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  |+* Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||+* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  |||`- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||`* Re: Faking a TTY on a pipe/socketpairRichard Kettlewell
 | |  || `* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||  +- Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||  `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||   +- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||   `* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||    `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||     +* Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||     |`* Re: Faking a TTY on a pipe/socketpairNicolas George
 | |  ||     | +* Re: Faking a TTY on a pipe/socketpairAlexis
 | |  ||     | |`- Re: Faking a TTY on a pipe/socketpairNicolas George
 | |  ||     | +* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||     | |`* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||     | | `- Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||     | `* Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||     |  `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||     |   `* Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||     |    `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||     |     `* Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||     |      `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||     |       `* Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||     |        `* Re: Faking a TTY on a pipe/socketpairScott Lurndal
 | |  ||     |         `- Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||     `* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||      `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       +* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||       |`* Re: Faking a TTY on a pipe/socketpairJohn Ames
 | |  ||       | +* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       | |+* Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||       | ||`* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||       | || `* Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||       | ||  `* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||       | ||   `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       | ||    +* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||       | ||    |`- Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       | ||    `- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||       | |`* Re: Faking a TTY on a pipe/socketpairJohn Ames
 | |  ||       | | `* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       | |  +- Re: Faking a TTY on a pipe/socketpairJohn Ames
 | |  ||       | |  +* Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  ||       | |  |+* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       | |  ||`* Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||       | |  || `- Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       | |  |`* Re: Faking a TTY on a pipe/socketpairRichard Kettlewell
 | |  ||       | |  | +* Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  ||       | |  | |`- Re: Faking a TTY on a pipe/socketpairKenny McCormack
 | |  ||       | |  | `- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||       | |  `- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||       | `- Re: Faking a TTY on a pipe/socketpairMuttley
 | |  ||       +- Re: Faking a TTY on a pipe/socketpairRainer Weikusat
 | |  ||       `- Re: Faking a TTY on a pipe/socketpairJim Jackson
 | |  |`* Re: Faking a TTY on a pipe/socketpairRichard L. Hamilton
 | |  | +- Re: Faking a TTY on a pipe/socketpairMuttley
 | |  | `- Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | |  `- Re: Faking a TTY on a pipe/socketpairLawrence D'Oliveiro
 | `* Re: Faking a TTY on a pipe/socketpairRichard L. Hamilton
 +- Re: Faking a TTY on a pipe/socketpairRichard Kettlewell
 `- Re: Faking a TTY on a pipe/socketpairScott Lurndal

Pages:12345
Subject: Re: Faking a TTY on a pipe/socketpair
From: Rainer Weikusat
Newsgroups: comp.unix.programmer
Date: Tue, 10 Dec 2024 22:02 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rweikusat@talktalk.net (Rainer Weikusat)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Tue, 10 Dec 2024 22:02:25 +0000
Lines: 26
Message-ID: <87r06fjixa.fsf@doppelsaurus.mobileactivedefense.com>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df>
<wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net avRZDfq1R7MlfO1leBxf8AjvXYsCWNub8UMZJTmC2IoDNb1tc=
Cancel-Lock: sha1:M95bxM41AGbIBa3eLWmOHpi8Ymg= sha1:PluaJRbcGpOoyxKu+h8lmefreE8= sha256:YpEqBypesH5xkAKYo/A9bxRZip2B/JiQYtIAT/5s6vE=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Tue, 10 Dec 2024 09:23:13 -0000 (UTC), Muttley wrote:
>
>> But the core part should really just be limited to starting the
>> machine and getting enough things running for a user to log on (or
>> if its a black box to do its task).
>
> One thing lacking from sysvinit is, while it can start a service, it
> cannot ensure the service was started properly, and it cannot perform
> reliable service shutdown. So the job of service management was really
> only half-done.

sysvinit has no concept of 'service.'

"Service started properly" is a pointless historical property because
"service was running propery 1ms" ago doesn't mean "service is still
running properly now" (that's one of the classic TOCTOU races everybody
just loves to ignore).

It's unclear what "reliable service shutdown" is supposed to mean. It's
possible to stop a somehow monitored process (not service) reliably (or
sort-of reliably) by killing it if it didn't terminate on its own
within some amount of time after a SIGTERM was sent to it. This works
perfectly with a special-purpose tool for that and doesn't need any
giant wolpertingers implemented with hundredthousands of lines of
overcomplicated C code.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Wed, 11 Dec 2024 08:33 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Wed, 11 Dec 2024 08:33:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vjbiop$1f2e5$1@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me>
Injection-Date: Wed, 11 Dec 2024 09:33:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="cb067e2e926d747fd0e5bdfcaa294e25";
logging-data="1542597"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JWzvaYY08BlHvqggC2Y/8"
Cancel-Lock: sha1:2pXQtI7TL9UJhk4I8li3Um1aEWM=
View all headers

On Tue, 10 Dec 2024 20:55:05 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>On Tue, 10 Dec 2024 09:23:13 -0000 (UTC), Muttley wrote:
>
>> But the core part should really just be limited to starting the
>> machine and getting enough things running for a user to log on (or
>> if its a black box to do its task).
>
>One thing lacking from sysvinit is, while it can start a service, it
>cannot ensure the service was started properly, and it cannot perform
>reliable service shutdown. So the job of service management was really
>only half-done.

It doesn't need to , it can just spawn off a script or some other program
which does that which is entirely inline with the unix philosophy. Something
Poettering never understood.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Wed, 11 Dec 2024 22:26 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Wed, 11 Dec 2024 22:26:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <vjd3jg$1od5c$3@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 11 Dec 2024 23:26:56 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e5c97f1cf11af302450cb514cdf42b13";
logging-data="1848492"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZAt6lF1f5kJbTeRhQHZYe"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:9wmRvzOLNF+l5zgU1MUWMwzcozs=
View all headers

On Wed, 11 Dec 2024 08:33:29 -0000 (UTC), Muttley wrote:

> On Tue, 10 Dec 2024 20:55:05 -0000 (UTC)
> Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>>
>> One thing lacking from sysvinit is, while it can start a service, it
>> cannot ensure the service was started properly, and it cannot perform
>> reliable service shutdown. So the job of service management was really
>> only half-done.
>
> It doesn't need to , it can just spawn off a script or some other
> program which does that which is entirely inline with the unix
> philosophy.

Which is where the trouble starts.

> Something Poettering never understood.

Poettering understands that services don’t just to be started, they also
need to be managed and shut down cleanly.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Jim Jackson
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Wed, 11 Dec 2024 22:40 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Wed, 11 Dec 2024 22:40:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <slrnvlk56u.2qa.jj@iridium.wf32df>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me>
Injection-Date: Wed, 11 Dec 2024 23:40:30 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f692c707b6c9054ea3380615f7664cf0";
logging-data="1844371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sBb/oQaDZ97rzDfrBmBpXJuMmSF1j4zY="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:rhpwdBx792y3U8pcOCPiuUqiIFc=
View all headers

On 2024-12-11, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Wed, 11 Dec 2024 08:33:29 -0000 (UTC), Muttley wrote:
>
>> On Tue, 10 Dec 2024 20:55:05 -0000 (UTC)
>> Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>>>
>>> One thing lacking from sysvinit is, while it can start a service, it
>>> cannot ensure the service was started properly, and it cannot perform
>>> reliable service shutdown. So the job of service management was really
>>> only half-done.
>>
>> It doesn't need to , it can just spawn off a script or some other
>> program which does that which is entirely inline with the unix
>> philosophy.
>
> Which is where the trouble starts.
>
>> Something Poettering never understood.
>
> Poettering understands that services don???t just to be started, they also
> need to be managed and shut down cleanly.

My God, how did we all manage running services before systemd came along?

Subject: Re: Faking a TTY on a pipe/socketpair
From: Nicolas George
Newsgroups: comp.unix.programmer
Organization: Guest of ProXad - France
Date: Wed, 11 Dec 2024 23:34 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-a.proxad.net!nnrp4-1.free.fr!not-for-mail
Newsgroups: comp.unix.programmer
From: nicolas$george@salle-s.org (Nicolas George)
Subject: Re: Faking a TTY on a pipe/socketpair
Sender: george@phare.invalid (Nicolas George)
X-Newsreader: Flrn (0.9.20070704)
References: <vh9vgr$5bb$1@dont-email.me> <vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Date: 11 Dec 2024 23:34:39 GMT
Lines: 8
Message-ID: <675a218f$0$12912$426a34cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 12 Dec 2024 00:34:39 CET
NNTP-Posting-Host: 129.199.129.80
X-Trace: 1733960079 news-4.free.fr 12912 129.199.129.80:35332
X-Complaints-To: abuse@proxad.net
View all headers

Jim Jackson , dans le message <slrnvlk56u.2qa.jj@iridium.wf32df>, a
écrit :
> My God, how did we all manage running services before systemd came along?

Badly, with services that have crashed and nobody noticed for weeks.

Some teams have been working on better replacement for SysV init, but
without the industrial strength of Red Hat they could only stay niche.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Alexis
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Thu, 12 Dec 2024 08:15 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: flexibeast@gmail.com (Alexis)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Thu, 12 Dec 2024 19:15:20 +1100
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <87bjxhnwpz.fsf@gmail.com>
References: <vh9vgr$5bb$1@dont-email.me> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df>
<675a218f$0$12912$426a34cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 12 Dec 2024 09:15:21 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8f1e0f9c9fd14b8e65bed95ff34d5595";
logging-data="2148215"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aZPc1bQ6Z2/qCn927mwGlBMKCAhbxFCU="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:MCcJxqNcCa1Ad1RvD3d67vqA0VA=
sha1:zQkShrcOV6/e3b7flzCJ4ky/Q4I=
View all headers

Nicolas George <nicolas$george@salle-s.org> writes:

> Jim Jackson , dans le message <slrnvlk56u.2qa.jj@iridium.wf32df>, a
> écrit :
>> My God, how did we all manage running services before systemd came along?
>
> Badly, with services that have crashed and nobody noticed for weeks.
>
> Some teams have been working on better replacement for SysV init, but
> without the industrial strength of Red Hat they could only stay niche.

Jonathan de Boyne Pollard, creator of the Nosh system[a], has written an
article about "known problems with System 5 rc":

https://jdebp.uk/FGA/system-5-rc-problems.html

i've used runit and s6+66 on Void Linux, and on Gentoo am currently
using OpenRC+s6 (the latter for providing user services, which are are
still a work in progress under OpenRC[b]):

https://wiki.gentoo.org/wiki/User:Flexibeast/guides/OpenRC_user_services_via_s6

My own case is certainly niche, though s6 is extensively used for
containers, via the s6-overlay project, which currently has ~3.8k stars
on GitHub:

https://github.com/just-containers/s6-overlay

Alexis.

[a] https://jdebp.uk/Softwares/nosh/

[b] https://github.com/OpenRC/openrc/pull/723

Subject: Re: Faking a TTY on a pipe/socketpair
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Thu, 12 Dec 2024 08:27 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Thu, 12 Dec 2024 08:27:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <vje6pr$21p08$2@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df>
<675a218f$0$12912$426a34cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 12 Dec 2024 09:27:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f089114b1739cee2d645e6e434e62749";
logging-data="2155528"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Zvpyrzep4yQq86QGFxRAi"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:5WHbBIVfuoR1WREOhtAQ8pLj/8A=
View all headers

On 11 Dec 2024 23:34:39 GMT, Nicolas George wrote:

> Some teams have been working on better replacement for SysV init, but
> without the industrial strength of Red Hat they could only stay niche.

I wonder what you think Red Hat’s business model could be in forcing
competitors to adopt technology they developed without paying for it.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Thu, 12 Dec 2024 08:39 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Thu, 12 Dec 2024 08:39:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vje7fb$21u8i$1@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me>
Injection-Date: Thu, 12 Dec 2024 09:39:07 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72b4141460d011887d5bb0dbda9260f8";
logging-data="2160914"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19T74TyCevpLIKRSnlQQqKC"
Cancel-Lock: sha1:52ZU1ulfsfUssOCDv8JsMu+qJio=
View all headers

On Wed, 11 Dec 2024 22:26:56 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>On Wed, 11 Dec 2024 08:33:29 -0000 (UTC), Muttley wrote:
>
>> On Tue, 10 Dec 2024 20:55:05 -0000 (UTC)
>> Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>>>
>>> One thing lacking from sysvinit is, while it can start a service, it
>>> cannot ensure the service was started properly, and it cannot perform
>>> reliable service shutdown. So the job of service management was really
>>> only half-done.
>>
>> It doesn't need to , it can just spawn off a script or some other
>> program which does that which is entirely inline with the unix
>> philosophy.
>
>Which is where the trouble starts.

The trouble is with any support scripts, not with init. I've written a
number of init scripts with a lot of surrounding logic. God knows how I'd
do that with systemd short of just getting it to call the exact same script
which rather defeats the purpose of having systemd.

>> Something Poettering never understood.
>
>Poettering understands that services don’t just to be started, they also
>need to be managed and shut down cleanly.

Poettering created the wrong solution to the wrong problem.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Thu, 12 Dec 2024 09:38 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Thu, 12 Dec 2024 09:38:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vjeavi$22hoe$1@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df>
<675a218f$0$12912$426a34cc@news.free.fr>
<vje6pr$21p08$2@dont-email.me>
Injection-Date: Thu, 12 Dec 2024 10:38:58 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72b4141460d011887d5bb0dbda9260f8";
logging-data="2180878"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jesOrJaL40XH4Yoe5fl59"
Cancel-Lock: sha1:+PMZkOHuaAHAtd4GfvXWHFHusEU=
View all headers

On Thu, 12 Dec 2024 08:27:39 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>On 11 Dec 2024 23:34:39 GMT, Nicolas George wrote:
>
>> Some teams have been working on better replacement for SysV init, but
>> without the industrial strength of Red Hat they could only stay niche.
>
>I wonder what you think Red Hat’s business model could be in forcing
>competitors to adopt technology they developed without paying for it.

Dead Rat was the darling of the business community for a long time - even more
so once IBM bought it. It was effectively a replacement for Solaris, HP-UX and
AIX. So the other distros thought they needed to follow suite in order to pick
up some of that market. Whether that worked or not I don't know, but its left
us with this legacy of systemd infesting just about every mainstream distro.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Nicolas George
Newsgroups: comp.unix.programmer
Organization: Guest of ProXad - France
Date: Thu, 12 Dec 2024 11:46 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp1-1.free.fr!not-for-mail
Newsgroups: comp.unix.programmer
From: nicolas$george@salle-s.org (Nicolas George)
Subject: Re: Faking a TTY on a pipe/socketpair
Sender: george@phare.invalid (Nicolas George)
X-Newsreader: Flrn (0.9.20070704)
References: <vh9vgr$5bb$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df> <675a218f$0$12912$426a34cc@news.free.fr> <87bjxhnwpz.fsf@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Date: 12 Dec 2024 11:46:49 GMT
Lines: 7
Message-ID: <675acd29$0$5211$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 12 Dec 2024 12:46:49 CET
NNTP-Posting-Host: 129.199.129.80
X-Trace: 1734004009 news-3.free.fr 5211 129.199.129.80:40084
X-Complaints-To: abuse@proxad.net
View all headers

Alexis , dans le message <87bjxhnwpz.fsf@gmail.com>, a écrit :
> My own case is certainly niche, though s6 is extensively used for
> containers, via the s6-overlay project, which currently has ~3.8k stars
> on GitHub:

I am rather pleased to ear that s6 has some success, although I know all the
ill its author thinks of containers.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Thu, 12 Dec 2024 22:24 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Thu, 12 Dec 2024 22:24:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <vjfnrk$2vfl9$2@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df>
<675a218f$0$12912$426a34cc@news.free.fr> <vje6pr$21p08$2@dont-email.me>
<vjeavi$22hoe$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 12 Dec 2024 23:24:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f089114b1739cee2d645e6e434e62749";
logging-data="3129001"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186RMNd27z0UYvCScieGjcf"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:8R6g0oKUlcMdo6d6qaFs4vjp3UU=
View all headers

On Thu, 12 Dec 2024 09:38:58 -0000 (UTC), Muttley wrote:

> So the other distros thought they needed to
> follow suite in order to pick up some of that market.

Something you pulled out of your fevered imagination, no doubt.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Thu, 12 Dec 2024 22:31 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Thu, 12 Dec 2024 22:31:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <vjfo8l$2vfl9$3@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me>
<vje7fb$21u8i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 12 Dec 2024 23:31:50 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f089114b1739cee2d645e6e434e62749";
logging-data="3129001"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oxUuyAfxbxL+aBDadpY9h"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:KBiF/aaBv4QqpDg6iH+sCTSbf0U=
View all headers

On Thu, 12 Dec 2024 08:39:07 -0000 (UTC), Muttley wrote:

> On Wed, 11 Dec 2024 22:26:56 -0000 (UTC)
> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>
>> On Wed, 11 Dec 2024 08:33:29 -0000 (UTC), Muttley wrote:
>>
>>> It doesn't need to , it can just spawn off a script or some other
>>> program which does that which is entirely inline with the unix
>>> philosophy.
>>
>> Which is where the trouble starts.
>
> The trouble is with any support scripts, not with init. I've written a
> number of init scripts with a lot of surrounding logic.

I’m sure you have. Which means you are familiar with the wholesale copying
and pasting of boilerplate from one script to the next. “What does this
bit do?” “Don’t bother thinking too hard, just stick it in, just in case.”

> God knows how I'd do that with systemd ...

Figure out what the directives do (they’re all documented), and which
settings will achieve the result you want. Most of the time, your service
file will be very simple and very short, since all the common cases are
already covered.

“Simple things should be simple, and complex things should be possible.”
-- Alan Kay

He was talking about GUI design, but the same applies to systemd. And to a
lot of other popular *nix software, while we’re at it.

>> Poettering understands that services don’t just to be started, they al
>> so need to be managed and shut down cleanly.
>
> Poettering created the wrong solution to the wrong problem.

Lots of sysadmins, and distro maintainers, and developers of service apps,
disagree.

Think of how simple it is to log error messages now: systemd automatically
captures stderr, and shows it in your service status and in the journal.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 10:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Fri, 13 Dec 2024 10:38:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <vjh2rr$3c08v$1@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me>
<vje7fb$21u8i$1@dont-email.me>
<vjfo8l$2vfl9$3@dont-email.me>
Injection-Date: Fri, 13 Dec 2024 11:38:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="516069d9462a35db448ba686f1bc32ab";
logging-data="3539231"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QpzCvEE+D7lkhCsjzdvGK"
Cancel-Lock: sha1:31avX+IAv6A1ocKBOdqrjMRMMEA=
View all headers

On Thu, 12 Dec 2024 22:31:50 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>On Thu, 12 Dec 2024 08:39:07 -0000 (UTC), Muttley wrote:
>> The trouble is with any support scripts, not with init. I've written a
>> number of init scripts with a lot of surrounding logic.
>
>I’m sure you have. Which means you are familiar with the wholesale copying
>and pasting of boilerplate from one script to the next. “What does this
>bit do?” “Don’t bother thinking too hard, just stick it in, just in
>case.”

Its a few lines of code and usually one just copies a simple rc file and
starts from there.

>> God knows how I'd do that with systemd ...
>
>Figure out what the directives do (they’re all documented), and which

Why TF would I want to have to leanr Yet Another Config Language when in
shell script I have a turing complete language that can do anything with the
system? You might as well say "Don't bother with that car, use this pushbike
instead."

>> Poettering created the wrong solution to the wrong problem.
>
>Lots of sysadmins, and distro maintainers, and developers of service apps,
>disagree.

Sheep exist even i open source. That other abortion poetrring wrote pulseaudio
was shoved into every distro until people realised that all it did was
remove the complexity of Alsa and add its own complexity in exchange. And
being built on alsa it simply added another layer and hence delay into the
sound system where you REALLY don't want delays.

>Think of how simple it is to log error messages now: systemd automatically
>captures stderr, and shows it in your service status and in the journal.

Oh wow, is there no end to its magical abilities!

Subject: Re: Faking a TTY on a pipe/socketpair
From: Rainer Weikusat
Newsgroups: comp.unix.programmer
Date: Fri, 13 Dec 2024 11:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rweikusat@talktalk.net (Rainer Weikusat)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Fri, 13 Dec 2024 11:42:18 +0000
Lines: 61
Message-ID: <87y10jn71h.fsf@doppelsaurus.mobileactivedefense.com>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df>
<wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me> <vje7fb$21u8i$1@dont-email.me>
<vjfo8l$2vfl9$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net wEX+2acJR621FB/tl9qj3AhpVSFZIZE1tsULeQ8KxuU+5TDHQ=
Cancel-Lock: sha1:wYBjg5YMHzWEMK6EuwbWQThdbL0= sha1:ia5DM5HNNrtEtMtjAvRBKJWSnPk= sha256:Px1YWqzdxjCWlnzVMeC/Airm3WvP4JovcNUqWjgrk8c=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Thu, 12 Dec 2024 08:39:07 -0000 (UTC), Muttley wrote:
>> On Wed, 11 Dec 2024 22:26:56 -0000 (UTC)
>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>
>>> On Wed, 11 Dec 2024 08:33:29 -0000 (UTC), Muttley wrote:
>>>
>>>> It doesn't need to , it can just spawn off a script or some other
>>>> program which does that which is entirely inline with the unix
>>>> philosophy.
>>>
>>> Which is where the trouble starts.
>>
>> The trouble is with any support scripts, not with init. I've written a
>> number of init scripts with a lot of surrounding logic.
>
> I’m sure you have. Which means you are familiar with the wholesale copying
> and pasting of boilerplate from one script to the next. “What does this
> bit do?” “Don’t bother thinking too hard, just stick it in, just in
> case.”

Nobody but you can be familiar with what you are doing when being forced
to write code.

>> God knows how I'd do that with systemd ...
>
> Figure out what the directives do (they’re all documented), and which
> settings will achieve the result you want. Most of the time, your service
> file will be very simple and very short, since all the common cases are
> already covered.
>
> “Simple things should be simple, and complex things should be possible.”
> -- Alan Kay

According to an automated count (mostly perl -ne 'print $_, "\n" for
/\w+=/g') the current version of systemd supports about 320
directives and people still combine that with start scripts, be this
because their use case still isn't supported or because they didn't want
to be bothered with learning about all the details of this huge, rusted
barbed wire obstacle just for solving a simple problem.

The quote would thus more appropriate be:

Make simple things hideously complicated and complicated things at all
impossible.

-- Lennart Poettering about "How to create problems for other people for one's
own benefit."

> He was talking about GUI design, but the same applies to systemd. And to a
> lot of other popular *nix software, while we’re at it.
>
>>> Poettering understands that services don’t just to be started, they al
>>> so need to be managed and shut down cleanly.
>>
>> Poettering created the wrong solution to the wrong problem.
>
> Lots of sysadmins, and distro maintainers, and developers of service apps,
> disagree.

Due to human nature, lots of people will always disagree with anything.

Subject: Re: Faking a TTY on a pipe/socketpair
From: John Ames
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 15:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Fri, 13 Dec 2024 07:42:07 -0800
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <20241213074207.00004176@gmail.com>
References: <vh9vgr$5bb$1@dont-email.me>
<jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me>
<vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me>
<vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me>
<vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df>
<wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me>
<vje7fb$21u8i$1@dont-email.me>
<vjfo8l$2vfl9$3@dont-email.me>
<vjh2rr$3c08v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Dec 2024 16:42:11 +0100 (CET)
Injection-Info: dont-email.me; posting-host="eb201f5ab92d340da82ee7ecf5ff0661";
logging-data="3673991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2l2cbpxt98z4bZe3/oPUe/tbIsVmUVOM="
Cancel-Lock: sha1:+hoFQm3z4sAO+OoaDKCGNM7UP74=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
View all headers

On Fri, 13 Dec 2024 10:38:51 -0000 (UTC)
Muttley@DastardlyHQ.org wrote:

> That other abortion poetrring wrote pulseaudio was shoved into every
> distro until people realised that all it did was remove the
> complexity of Alsa and add its own complexity in exchange. And being
> built on alsa it simply added another layer and hence delay into the
> sound system where you REALLY don't want delays.

This bears repeating. Why *anybody* decided to trust the judgement of
the person who gave us the jankiest of all the incredibly janky *nix
audio subsystems is beyond comprehension.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Jim Jackson
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 20:07 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Fri, 13 Dec 2024 20:07:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <slrnvlp50u.29n.jj@iridium.wf32df>
References: <vh9vgr$5bb$1@dont-email.me> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df>
<675a218f$0$12912$426a34cc@news.free.fr>
Injection-Date: Fri, 13 Dec 2024 21:07:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="308f169c22b4004a84c6c94568acd33b";
logging-data="3777225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Rc4xiXLOTw0uzVBBDnmtPf1SltL0k51c="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:47jsfIURwMwOPpAXpXcXuIJlti8=
View all headers

On 2024-12-11, Nicolas George <nicolas$george@salle-s.org> wrote:
> Jim Jackson , dans le message <slrnvlk56u.2qa.jj@iridium.wf32df>, a
> ?crit?:
>> My God, how did we all manage running services before systemd came along?
>
> Badly, with services that have crashed and nobody noticed for weeks.

People keep saying that. But in my experience services were run as
efficiently as they seem to be run today. Perhaps the team I worked in
knew what it was doing :-)

Subject: Re: Faking a TTY on a pipe/socketpair
From: Jim Jackson
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 20:15 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Fri, 13 Dec 2024 20:15:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <slrnvlp5ek.29n.jj@iridium.wf32df>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me>
<vje7fb$21u8i$1@dont-email.me> <vjfo8l$2vfl9$3@dont-email.me>
Injection-Date: Fri, 13 Dec 2024 21:15:17 +0100 (CET)
Injection-Info: dont-email.me; posting-host="308f169c22b4004a84c6c94568acd33b";
logging-data="3777225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Djvnx8MG2GcZ8pYrqW8Vglm5UefpevNc="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:q0weZiOFz22GAtirXAOw6ambxUc=
View all headers

>> The trouble is with any support scripts, not with init. I've written a
>> number of init scripts with a lot of surrounding logic.
>
> I???m sure you have. Which means you are familiar with the wholesale copying
> and pasting of boilerplate from one script to the next. ???What does this
> bit do???? ???Don???t bother thinking too hard, just stick it in, just in case.???

Ah describing bad programming practice. The same thing happens when
people just cut and paste anything without knowing what they are doing.

>
>> God knows how I'd do that with systemd ...
>
> Figure out what the directives do (they???re all documented), and which
> settings will achieve the result you want.

Nah, as you say above just cut and paste and not think about any diffiicult
bits you need to read up on :-)

> Most of the time, your service
> file will be very simple and very short, since all the common cases are
> already covered.
>
>>> Poettering understands that services don???t just to be started, they al
>>> so need to be managed and shut down cleanly.

Actually a service should know how to shutdown itself cleanly and should
document how that is achieved.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 22:05 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Fri, 13 Dec 2024 22:05:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <vjib38$3kiac$2@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me> <slrnvlk56u.2qa.jj@iridium.wf32df>
<675a218f$0$12912$426a34cc@news.free.fr> <slrnvlp50u.29n.jj@iridium.wf32df>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 13 Dec 2024 23:05:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="4a9fda4f27bd8b0b5de8f91ee282534a";
logging-data="3819852"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eTJnKoGU7R/DZp28rUa7V"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:F6ksAGu2rKP7+/pP1hQ+PkjmLvs=
View all headers

On Fri, 13 Dec 2024 20:07:58 -0000 (UTC), Jim Jackson wrote:

> On 2024-12-11, Nicolas George <nicolas$george@salle-s.org> wrote:
>>
>> Jim Jackson , dans le message <slrnvlk56u.2qa.jj@iridium.wf32df>, a
>> écrit :
>>>
>>> My God, how did we all manage running services before systemd came
>>> along?
>>
>> Badly, with services that have crashed and nobody noticed for weeks.
>
> People keep saying that. But in my experience services were run as
> efficiently as they seem to be run today. Perhaps the team I worked in
> knew what it was doing :-)

How many custom services were you running on a single machine, just out of
curiosity?

Subject: Re: Faking a TTY on a pipe/socketpair
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Sat, 14 Dec 2024 01:35 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Sat, 14 Dec 2024 01:35:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <vjind8$3mkah$2@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me>
<vje7fb$21u8i$1@dont-email.me> <vjfo8l$2vfl9$3@dont-email.me>
<vjh2rr$3c08v$1@dont-email.me> <20241213074207.00004176@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Dec 2024 02:35:37 +0100 (CET)
Injection-Info: dont-email.me; posting-host="dd7dcedb5f199d2c5682951f77cb56f7";
logging-data="3887441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nglsLa9RveMol+yQT7x7m"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:+v/A8nnVRl4wnctZKqigxF/LPRc=
View all headers

On Fri, 13 Dec 2024 07:42:07 -0800, John Ames wrote:

> This bears repeating. Why *anybody* decided to trust the judgement of
> the person who gave us the jankiest of all the incredibly janky *nix
> audio subsystems is beyond comprehension.

There was no reason why you had to. You could easily have created your own
distro without any of his code in it, if you wanted to. Or become an
aficionado of one of the existing distros that did exactly that.

Open Source is all about choice. If you can’t stand the thought of people
making different choices from you, you know what you can do.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Richard L. Hamilton
Newsgroups: comp.unix.programmer
Organization: Timetravellers Anonymous
Date: Sat, 14 Dec 2024 08:48 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.swapon.de!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
Mime-Version: 1.0
X-Newsreader: knews 1.0b.1
Reply-To: rlhamil@smart.net
Organization: Timetravellers Anonymous
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
From: rlhamil@smart.net (Richard L. Hamilton)
Subject: Re: Faking a TTY on a pipe/socketpair
Newsgroups: comp.unix.programmer
Content-Type: text/plain; charset=iso8859-1
Content-Transfer-Encoding: 8bit
Lines: 40
Message-ID: <4Db7P.825$ZEZf.100@fx40.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Sat, 14 Dec 2024 08:48:00 UTC
Date: Sat, 14 Dec 2024 08:48:00 GMT
X-Received-Bytes: 2692
View all headers

In article <vinp86$avd9$1@dont-email.me>,
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Tue, 3 Dec 2024 08:20:51 -0000 (UTC), Muttley wrote:
>
>> I'm wondering on Linux if it would be enough on Linux to spoof ttyname()
>> and isatty() using LD_PRELOAD. However it seems doing something similar
>> on a Mac is the usual over complicated Apple hot mess.
>
> macOS may be a licensee of the “Unix” trademark, but it does not work the
> way people expect when they think of the term “Unix”.

It probably does as of the version of the formal specification they met
to be allowed to use the trademark.

Other features that are customary but not entirely standardized
may be implemented differently if at all, possibly with different
side-effects or complications.

Pretty sure I've some time ago used the equivalent of LD_PRELOAD on
macOS to wrap some existing library function, with very little change
to the C code, but some change to compiler options, environment
variables required, etc. For instance, one might need compiler flags
-fPIC -dynamiclib

which might be different from other platforms. And the environment variable
for macOS instead of LD_PRELOAD (from the dyld man page) is
DYLD_INSERT_LIBRARIES
This is a colon separated list of additional dynamic libraries to
load before the ones specified in the program. If instead, your
goal is to substitute a library that would normally be loaded, use
DYLD_LIBRARY_PATH or DYLD_FRAMEWORK_PATH instead.

However I just tried this with some old preloadable modules (of
suitable architecture), and it no longer seems to work. Not sure what
else I have to do now. Maybe this changed/broke when most dynamic libraries
were replaced by a pre-linked cache files that would map in in their entirety
at reserved address(es). Faster, more secure, but maybe less flexible.
Haven't googled enough yet to find the answer, if any.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Richard L. Hamilton
Newsgroups: comp.unix.programmer
Organization: Timetravellers Anonymous
Date: Sat, 14 Dec 2024 08:52 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.netnews.com!s1-2.netnews.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
Mime-Version: 1.0
X-Newsreader: knews 1.0b.1
Reply-To: rlhamil@smart.net
Organization: Timetravellers Anonymous
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
From: rlhamil@smart.net (Richard L. Hamilton)
Subject: Re: Faking a TTY on a pipe/socketpair
Newsgroups: comp.unix.programmer
Content-Type: text/plain; charset=iso8859-1
Content-Transfer-Encoding: 8bit
Lines: 38
Message-ID: <2Hb7P.826$ZEZf.318@fx40.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Sat, 14 Dec 2024 08:52:14 UTC
Date: Sat, 14 Dec 2024 08:52:14 GMT
X-Received-Bytes: 2275
X-Original-Bytes: 2224
View all headers

In article <vit3dg$1quau$1@dont-email.me>,
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Thu, 5 Dec 2024 08:19:46 -0000 (UTC), Muttley wrote:
>
>> On Thu, 5 Dec 2024 02:11:04 -0000 (UTC)
>> Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>>>
>>>On Wed, 4 Dec 2024 08:34:30 -0000 (UTC), Muttley wrote:
>>>
>>>> Linux is far closer to the unix philosphy (ignoring systemd) ...
>>>
>>>Which “unix philosophy” would that be?
>>
>> The one where init does a single task instead of spreading itself
>> throughout the system ...
>
> What “single task” did init do?
>
> * Mount filesystems
> * Spawn syslog, cron
> * Spawn terminal login processes (getty)
> * Respawn terminated getty processes
> * Monitor other special stuff in inittab
> * Spawn random other services, without monitoring their state
> * Act as a general catch-all for orphaned processes when they terminate
>
> This was all before systemd came on the scene.

It spawned other processes, and where the idea of run levels existed,
selected what to spawn based on those.

It did not do tricky communication with processes, elaborately
manipulate their initial environment, and except for adopting orphans
and respawning processes, didn't do much at all to bother them during
their lifespan unless the run level was changed.

MacOS launchd is arguably even worse insofar as it also has things like
Mach namespaces to deal with.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Richard L. Hamilton
Newsgroups: comp.unix.programmer
Organization: Timetravellers Anonymous
Date: Sat, 14 Dec 2024 09:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
Mime-Version: 1.0
X-Newsreader: knews 1.0b.1
Reply-To: rlhamil@smart.net
Organization: Timetravellers Anonymous
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me>
<viujjv$29frk$1@dont-email.me> <vivl5m$2hrka$1@dont-email.me>
<vj16j0$30r12$1@dont-email.me>
From: rlhamil@smart.net (Richard L. Hamilton)
Subject: Re: Faking a TTY on a pipe/socketpair
Newsgroups: comp.unix.programmer
Content-Type: text/plain; charset=iso8859-1
Content-Transfer-Encoding: 8bit
Lines: 54
Message-ID: <oUb7P.827$ZEZf.92@fx40.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Sat, 14 Dec 2024 09:06:28 UTC
Date: Sat, 14 Dec 2024 09:06:28 GMT
X-Received-Bytes: 3371
View all headers

In article <vj16j0$30r12$1@dont-email.me>,
Muttley@dastardlyhq.com writes:
> On Fri, 6 Dec 2024 20:00:54 -0000 (UTC)
> Lawrence D'Oliveiro <ldo@nz.invalid> gabbled:
>>On Fri, 6 Dec 2024 10:28:15 -0000 (UTC), Muttley wrote:
>>
>>> On Thu, 5 Dec 2024 20:45:36 -0000 (UTC)
>>> Lawrence D'Oliveiro <ldo@nz.invalid> wibbled:
>>>
>>>> What “single task” did init do?
>>>
>>> Boot the system to usable state.
>>
>>What would you say systemd does that is not related to that?
>
> Networking, including DNS
> Graphics
> Logging
> systemd-boot
>
> Basically init should start the system, maintain some the running of
> some essential daemons and then leave well alone.
>

On Solaris 10 and later, svc.startd does most spawning and respawning
and such, and uses a "contract" mechanism to be able to keep track of
and if needed kill off otherwise daemonized processes (sshd needs a
compile time option so it only kills the listening sshd and not the
children handling processes - which need to explicitly break their
"contract", otherwise an admin restarting sshd over ssh will kick
themselves out; but for the vast majority of other code, the contract
mechanism does what one might hope with no modification needed to the
code of what it controls)).

But it still has init, although init does little more than start or
control svc.startd (but you could configure it to start something
outside of the control of svc.startd if you really wanted to).

What's the point of svc.startd there? It with the relevant service
configuration files can handle dependencies among services (processes
or other actions) to be started, starting in parallel any whose
dependencies are satisfied; with sufficient hardware threads, that can
provide faster startup. And it can use the aforementioned contract
mechanism to stay more in control, and will fix simple things by
restarting, albeit not if they keep faulting too rapidly. It interacts
with fault management (which also deals with hardware issues) to
provide a consolidated handing of both daemon and hardware issues, for
greater fault tolerance.

For Solaris systems isolated enough that they didn't need regular security
updates, I've seen uptimes in years, so they're probably doing something
right (that they mostly have ECC RAM helps a lot, too). @home, I seldom
get those uptimes, in part because I don't have UPS for everything. :-)

Subject: Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)
From: Richard L. Hamilton
Newsgroups: comp.unix.programmer
Organization: Timetravellers Anonymous
Date: Sat, 14 Dec 2024 09:09 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
Mime-Version: 1.0
X-Newsreader: knews 1.0b.1
Reply-To: rlhamil@smart.net
Organization: Timetravellers Anonymous
References: <vh9vgr$5bb$1@dont-email.me> <viujjv$29frk$1@dont-email.me>
<vivl5m$2hrka$1@dont-email.me> <vj16j0$30r12$1@dont-email.me>
<vj1nv2$1dc7k$1@news.xmission.com> <vj1rp1$363i0$1@dont-email.me>
From: rlhamil@smart.net (Richard L. Hamilton)
Subject: Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)
Newsgroups: comp.unix.programmer
Content-Type: text/plain; charset=us-ascii
Lines: 36
Message-ID: <4Xb7P.828$ZEZf.798@fx40.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Sat, 14 Dec 2024 09:09:20 UTC
Date: Sat, 14 Dec 2024 09:09:20 GMT
X-Received-Bytes: 2358
View all headers

In article <vj1rp1$363i0$1@dont-email.me>,
Muttley@dastardlyhq.com writes:
> On Sat, 7 Dec 2024 15:00:50 -0000 (UTC)
> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
>>In article <vj16j0$30r12$1@dont-email.me>, <Muttley@dastardlyhq.com> wrote:
>>....
>>>>What would you say systemd does that is not related to that?
>>>
>>>Networking, including DNS
>>>Graphics
>>>Logging
>>>systemd-boot
>>>
>>>Basically init should start the system, maintain some the running of
>>>some essential daemons and then leave well alone.
>>
>>I agree with you. But it underscores a major difference between two very
>>different ways of thinking about computing, which can be described as
>>"Unix-think" vs. "Windows-think".
>>
>>systemd represents nothing so much as the bringing of "Windows-think" to Unix.
>>
>>If one embraces "Windows-think", then systemd makes complete sense.
>
> Yes, I've heard that said before and it does ring true. I guess we should be
> thankful that systemd still uses text based config but I wouldn't be surprised
> if some Windows like binary registry isn't somewhere on the horizon. Of course
> Poettering has worked for MS for a long time so one can see where all his bad
> ideas come from.j

AIX ("AIX Isn't uniX") has something like a registry, as I recall.

Even on Solaris, although the configuration files may still mostly be text,
there's a tendency toward commands that do the actual configuring. In a way,
that's safer since they can offer sanity checks before changes actually take
effect.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Sat, 14 Dec 2024 10:05 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Sat, 14 Dec 2024 10:05:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vjjl8l$3urrp$1@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me>
<jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me>
<vinp86$avd9$1@dont-email.me>
<vip46l$omqu$1@dont-email.me>
<vir23n$17csf$5@dont-email.me>
<virnn2$1g9ja$1@dont-email.me>
<vit3dg$1quau$1@dont-email.me>
<slrnvleknf.apv.jj@iridium.wf32df>
<wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk>
<vj91a1$t8pn$1@dont-email.me>
<vja9r8$14k6s$1@dont-email.me>
<vjbiop$1f2e5$1@dont-email.me>
<vjd3jg$1od5c$3@dont-email.me>
<vje7fb$21u8i$1@dont-email.me>
<vjfo8l$2vfl9$3@dont-email.me>
<vjh2rr$3c08v$1@dont-email.me>
<20241213074207.00004176@gmail.com>
Content-Type: text/plain; charset=US-ASCII
Injection-Date: Sat, 14 Dec 2024 11:05:10 +0100 (CET)
Injection-Info: dont-email.me; posting-host="1edb588882a904307434f142a72a97b8";
logging-data="4157305"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+E/SObwYXU5l8PcOWZQwZ8"
Cancel-Lock: sha1:uvgEWapG52LLlO1GZesszjC5Hhw=
View all headers

On Fri, 13 Dec 2024 07:42:07 -0800
John Ames <commodorejohn@gmail.com> gabbled:
>On Fri, 13 Dec 2024 10:38:51 -0000 (UTC)
>Muttley@DastardlyHQ.org wrote:
>
>> That other abortion poetrring wrote pulseaudio was shoved into every
>> distro until people realised that all it did was remove the
>> complexity of Alsa and add its own complexity in exchange. And being
>> built on alsa it simply added another layer and hence delay into the
>> sound system where you REALLY don't want delays.
>
>This bears repeating. Why *anybody* decided to trust the judgement of
>the person who gave us the jankiest of all the incredibly janky *nix
>audio subsystems is beyond comprehension.

Agreed. On a side note, its a shame the original authors of X didn't decide
to do sound too or at least provide an API that others could build extensions
to use because by the time X - or at least X11 - was adopted unix had moved on
from cabinet sized servers to desktop workstations where sound mattered. It
seems odd to me that graphics and sound are still totally seperate on unix
but perhaps my formative years on 8 bit home micros where graphics and sound
came bundled skew my opinion.

Subject: Re: Faking a TTY on a pipe/socketpair
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Sat, 14 Dec 2024 10:06 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Faking a TTY on a pipe/socketpair
Date: Sat, 14 Dec 2024 10:06:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <vjjlb5$3us85$1@dont-email.me>
References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad>
<vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me>
<4Db7P.825$ZEZf.100@fx40.iad>
Content-Type: text/plain; charset=iso8859-1
Injection-Date: Sat, 14 Dec 2024 11:06:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="1edb588882a904307434f142a72a97b8";
logging-data="4157701"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BN7Z3ZTEfg7MgjR8Ts0eJ"
Cancel-Lock: sha1:LI4gp0T1D8PwurDChwvYtHkX2Nk=
View all headers

On Sat, 14 Dec 2024 08:48:00 GMT
rlhamil@smart.net (Richard L. Hamilton) gabbled:
>However I just tried this with some old preloadable modules (of
>suitable architecture), and it no longer seems to work. Not sure what
>else I have to do now. Maybe this changed/broke when most dynamic libraries
>were replaced by a pre-linked cache files that would map in in their entirety
>at reserved address(es). Faster, more secure, but maybe less flexible.
>Haven't googled enough yet to find the answer, if any.

Probably something to do with security. Apple have really nailed MacOS down
in recent releases. I looked at how to do it for recent versions and just
decided I couldn't be bothered. Seemed to require putting macros in code and
I just thought nah.

Pages:12345

rocksolid light 0.9.8
clearnet tor