z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


setsid

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-setsid--sid-------------------------------------------------><

Function

setsid invokes the setsid callable service to create a new session with the calling process as its session leader. The caller becomes the group leader of a new process group.

Parameters

sid
The process ID of the calling process, which becomes the session or process group ID of the new process group.

Usage notes

The calling process does not have a controlling terminal.

Example

In the following example, assume that sid was assigned a value earlier in the exec:
"setsid" sid

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014