4 ms·
Sigh. Looks more and more likely Mojave will be the last OSX version I’ll ever use.
by toyg 6y ago
Sigh. Looks more and more likely Mojave will be the last OSX version I’ll ever use.
- my123 6y ago> Many system calls will report the EINTR error code if a signal occurred while the system call was in progress. No error actually occurred, it's just reported that way because the system isn't able to resume the system call automatically. This coding pattern simply retries the system call when this happens, to ignore the interrupt. > For instance, this might happen if the program makes use of alarm() to run some code asynchronously when a timer runs out. If the timeout occurs while the program is calling write(), we just want to retry the system call (aka read/write, etc). It's perfectly valid behaviour, and the solution is to retry in that case.
- tobiasu 6y agoYour solution will hang postgres at 100% CPU, with no indication what is wrong.
- jorams 6y agoSetting the SA_RESTART flag using sigaction[1], which Postgres does, makes it invalid behaviour. Even according to Apple's (confusingly worded) documentation[2]. [1]:https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaction.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/s... [2]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sigaction.2.html https://developer.apple.com/library/archive/documentation/Sy...
- toyg 6y agoThe point is that this obsession with more and more restrictions is death by a thousand cuts.
- drunkpotato 6y agoSame. Much as I’d hate to do it I’ve been eyeing a Windows system, with Linux either through the OS layer or virtualized.
- rootusrootus 6y agoIf you're willing to go to a virtualized Linux in order to switch to Windows, why wouldn't you do the same on MacOS?
- monopoledance 6y agoI think kernel virtualization support is better on Linux than Windows, so you may be better served running Windows guests on Linux. I think people are even gaming like this for a minimal penalty with hardware pass-through. I absolutely can't fathom how anyone could make Windows their daily driver. Having to unbloat, unspy, unfuck a brand new system, I mean...