Randall
2021-02-08 19:37:37 UTC
Hi All,
I'm trying to use PROCESS_SPAWN_ from GUARDIAN. Normally there are no issues when I am setting stdout of the created child to a process name or SSH tty. However, when I specify an OSS path for stdout, whether the file exists or not, the file is appended to the cwd and the process fails being unable to open stdout, with either an error 4002 (no such file) if I don't pre-create the file, or 4021 (is a directory, which it's not) if I do.
/* Build the fdinfo entry for stdout */
fdentry[1].z_fd = 1;
fdentry[1].z_dupfd = -1;
fdentry[1].z_name = "/tmp/test.out";
fdentry[1].z_oflag = O_WRONLY;
fdentry[1].z_mode = 0755;
The 4002 is reported on /home/randall//tmp/test.out. This one has me scratching my head. Any thoughts?
TIA,
Randall
I'm trying to use PROCESS_SPAWN_ from GUARDIAN. Normally there are no issues when I am setting stdout of the created child to a process name or SSH tty. However, when I specify an OSS path for stdout, whether the file exists or not, the file is appended to the cwd and the process fails being unable to open stdout, with either an error 4002 (no such file) if I don't pre-create the file, or 4021 (is a directory, which it's not) if I do.
/* Build the fdinfo entry for stdout */
fdentry[1].z_fd = 1;
fdentry[1].z_dupfd = -1;
fdentry[1].z_name = "/tmp/test.out";
fdentry[1].z_oflag = O_WRONLY;
fdentry[1].z_mode = 0755;
The 4002 is reported on /home/randall//tmp/test.out. This one has me scratching my head. Any thoughts?
TIA,
Randall