On Sat, 18 Jun 2022 09:51:45 -0700, Charles Mills wrote:
>    ...

>I picture writing the started task in Rexx, so I would have to write to a DD
>name allocated to the UNIX file (either dynamically or with JCL), not with
>"native" C fopen(), fwrite(), etc. Does that change any of the answers?
> 
Why?  In Rexx you can "address SYASCALL write ..." instead.

There seems to be a convention where the reporting process rename()s the
log file. The logging process (daemon?) (task?!) continues to write to the
open descriptor until it closes it, conventionally by a SIGHUP(!?) from the
reporting process.  The logger then open( ,O_CREAT + O_APPEND)s a
new instance and the reporting process reports from the renamed one.
No data drops through a timing window
<https://en.wikipedia.org/wiki/SIGHUP#Modern_usage>.

o When I wear my MVS hat, I can't grok fork().
o When I wear my UNIX hat, I can't grok ENQ.
o If I put on both hats, my brain overheats.

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to