Article View: comp.sys.dec
Article #11Re: VAX-11/780 up and running at LSSM
From: Scott Lurndal
Date: Wed, 11 Nov 2026 20:49
Date: Wed, 11 Nov 2026 20:49
25 lines
2082 bytes
2082 bytes
Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> writes: >On Wed, 11 Nov 2026 07:10:49 -0800, Andy Valencia wrote: > >> Credit where credit is due, while doing some regression testing of >> CPython on the Mac, one of the tests bombed with an EXC_GUARD. Turns >> out they have "guarded" file descriptors, and if you touch them your >> program dies. The CPython test had a "sweep all the FD's and close >> them" loop, and when it touched the protected one--boom. >> >> This felt very UNIX-y to me, even though I hadn't encountered such a >> thing before. I felt like there must be some folks deep inside Apple >> who still have a feel for such things. > >Do you mean, the program crashed because it was trying to close an >invalid file descriptor? > >On Linux, there is a way a process can tell which of its file >descriptors are valid or not (/proc/self/fd); is there not such a >mechanism on macOS? Sure. Just use fstat(2) to check each file descriptor up to RLIMIT_NFILE. Works on Unix, Mac, Linux.
Technical Details
Message-ID:
<ex4JS.667$li3.287@fx46.iad>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mailReferences:
<11d1sbb$4nn$1@panix2.panix.com> <10gd7ig$6g5c$1@mail.neurotica.com> <11ct38r$fj2$1@shell02.theworld.com> <11cthfm$1lilf$3@dont-email.me> <11cvqdr$fiu$1@shell02.theworld.com> <179440984981.23242.2524122738297826914@media.vsta.org> <11d2h6a$3b879$3@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: VAX-11/780 up and running at LSSM Newsgroups: comp.os.vms,comp.sys.dec References: <11d1sbb$4nn$1@panix2.panix.com> <10gd7ig$6g5c$1@mail.neurotica.com> <11ct38r$fj2$1@shell02.theworld.com> <11cthfm$1lilf$3@dont-email.me> <11cvqdr$fiu$1@shell02.theworld.com> <179440984981.23242.2524122738297826914@media.vsta.org> <11d2h6a$3b879$3@dont-email.me> Lines: 25 Message-ID: <ex4JS.667$li3.287@fx46.iad> X-Complaints-To: abuse@usenetserver.com NNTP-Posting-Date: Wed, 11 Nov 2026 20:49:14 UTC Organization: UsenetServer - www.usenetserver.com Date: Wed, 11 Nov 2026 20:49:14 GMT X-Received-Bytes: 1843