- char *p, path[MAXPATHLEN];
-
- /* If the standard output is a terminal, all output written to
- its standard output shall be appended to the end of the file
- nohup.out in the current directory. If nohup.out cannot be
- created or opened for appending, the output shall be appended
- to the end of the file nohup.out in the directory specified
- by the HOME environment variable.
-
- If a file is created, the file's permission bits shall be
- set to S_IRUSR | S_IWUSR. */
-#define FILENAME "nohup.out"
+ char path[MAXPATHLEN];
+ const char *p;
+
+ /*
+ * POSIX mandates if the standard output is a terminal, the standard
+ * output is appended to nohup.out in the working directory. Failing
+ * that, it will be appended to nohup.out in the directory obtained
+ * from the HOME environment variable. If file creation is required,
+ * the mode_t is set to S_IRUSR | S_IWUSR.
+ */