[PATCH v4 1/1] ldconfig: add --install option
Florian Weimer
fweimer@redhat.com
Wed Jun 10 07:33:03 GMT 2026
* DJ Delorie:
> Florian Weimer <fweimer@redhat.com> writes:
>> And it requires installing a signal handler. Otherwise, the process
>> just goes away. I don't think installs signal handlers.
>
> My first thought was "malloc a big enough array, and do it in one read
> and one write"
>
> Then I thought "or I could write robust, efficient code, to act as a
> sample of high quality code for future engineers."
That's good point. That suggests using TEMP_FAILURE_RETRY.
There might also be network file systems that produce short writes
without signals.
Maybe we should add official glibc wrappers for read/write-style
functions that retry properly? Including vector variants, that can be
especially tricky?
Thanks,
Florian
More information about the Libc-alpha
mailing list