stderr

QNX SDP8.0PLMS User's GuideAPIConfigurationDeveloper

Format

stderr = "filename:mode"

Description

The stderr keyword specifies the filename and the access mode. The access modes are overwritten (w) or append (a). Specifying stderr="NULL" closes STDERR_FILENO (fd:2) for the process.

Example

stderr = "/tmp/plms_errlog.txt:w"

Default

The system default is that the child process inherits its parent's stderr. The child process inherits PLMS's stderr.

Multiplicity

Not allowed when tty is specified or one instance when tty is not specified.

Constraints

  • The value of stderr is evaluated during component runtime.

  • If stderr is specified, then tty is not allowed in the task.

  • If stderr is specified in a task, then the task must have one of the exec*() functions so that stderr is used at run time.

  • The file specified needs to have write access for the user/group that the task is running at. It cannot rely on access granted by a supplementary group since these groups are not set until after the process is spawned. If the file is only owned by a supplementary group, the process will not be able to write to stderr since the supplementary groups are not configured until after the process has been spawned.

Page updated: