NAME
	getsid - get the process session ID

SYNTAX
	int getsid();
	or
	int getsid(int pid);

DESCRIPTION
	Get the process session ID for the given process. If pid is
	not specified, the session ID for the current process will
	be returned.

KEYWORDS
	Processes

SEE ALSO
	system/getpid, system/getpgrp, system/setsid
