322 z/OS Distributed File Service zSeries File System Implementation z/OS V1R11
Parse Arg final_rc
If swsu Then Call Syscall_Cmd "chdir" cur_cwd
If sig_enabled Then
Call Syscall_Cmd "sigaction" sigalrm ohdl oflg "x y",,
noexit_on_error
Call Syscalls "SIGOFF"
Do i=0 To 2
If fd.i<>-1 Then Call Syscall_Cmd "close (fd.i)", noexit_on_error
End
If pp.1<>-1 Then Call Syscall_Cmd "close (pp.1)", noexit_on_error
If swsu & switched & foreground Then Do
If MVSVar("SYSMVS")>="SP7.0.3" Then Do
Call Syscall_Cmd "setreuid" cur_uid cur_euid, noexit_on_error
If not_OK Then Say "UID settings could not be switched back..."
End
Else Do
Call Syscall_Cmd "seteuid" cur_euid, noexit_on_error
If not_OK Then Say "Effective UID could not be switched back..."
End
End ...