-
tsoome_mmm sauna + Kulmbacher Mönchshof...
-
jclulowalanc: what is postwait_post(3C)?!
-
sommerfelddocs.oracle.com/cd/E88353_01/html/E37843/postwait-post-3c.html ? (unclear what you'd use it for..)
-
richloweit's how you send letters to Theo
-
richloweobviously
-
jclulowsommerfeld: yes that one haha
-
gitomat[illumos-gate] 16765 loader: remove unused bzipfs, splitfs, pkgfs, ext2fs -- Toomas Soome <tsoome⊙mc>
-
sommerfeldthe postwait_post thing reminds me that I was annoyed that there doesn't seem to be a way to use event ports to wait for a process to exit.
-
sommerfeldthere does seem to bne something in there (postwait_post_deferred() with PWPOST_ATEXIT) but it's unclear if that survives exec())
-
jclulowsommerfeld: I was actually just talking to rmustacc about PORT_SOURCE_PID haha
-
jclulowProbably you would associate with a pid and it would return you the event when it was safe to call waitid() without blocking
-
sommerfeldyeah, PORT_SOURCE_PID would be one way to do it.
-
sommerfeldlinux prior art in this space is pidfd_open() (which if we implemented you could then PORT_SOURCE_FD it)
-
sommerfeldpresumably with useful guarantees about avoiding trouble from pid reuse (likely with similar caveats for pidfd_open() on linux -- you must call it on a pid you got from fork() before you have reaped it or did anything that would have allowed the kernel to auto-reap it)