This code example attempts to execute a task and log any results into a temporary log
file. Line 1 generates a predictable filename that includes the process ID. The open() in
line 2 opens the target filename for writing. Not only is the filename predictable, it is
also in a directory (/tmp) that typically has world-writable permissions. Since the open()