|
��������
exit, _exit - ����������� ���������� ��������
���������
void exit (status) int status; void _exit (status) int status;
��������
��������� ����� exit ����������� ������������ � ����
�������, ��� ���� ��������������� ����������� ���������
��������:
� ���� ������������ �������� ����������������� ���������, � ����� � �����-��������� ������������� ������������� �������� ��������������� ������ 1. ����� �������, ��� ��� �������� ����������� ����������������� ��������� [��. intro(2)].
��� �������������� ����������� �������� ������ ������������� � � ��������� � ���� ���������� ������ �������� ����� shm_nattach ����������� �� 1.
� ������ ��������, ��� �������� � �������� ������� �������� semadj, ��� �������� ������������ � ���� semval.
���� ������� ��������� � ������ ������� ������, ������ ��� ����� ���� �������, �� ��������� ���������� [��. plock(2)].
���� ������� ����� ����� �������������� ����������, �� � ���� ����� ���������� ���������� ������ � ����������� � �������� [��. acct(2)].
���� ������������� ��������, ������������� ������ ��������� � ������������� ������ ��������� � ��������, ���������� exit, ���������, �� ���� ��������� � ��� �� ��������������� ������ ��������� ���������� ������ SIGHUP.
������������� �������� ���������� ������ SIGCLD (���������� ������������ ��������).
C-������� exit ����� ������������ �������� ����� ��������� ��������� ������������� ��������, ��������, ���������� ��������������. ������� _exit ���������� ���������� ��������� �������.
��. �����
acct(2), intro(2), plock(2), semop(2), signal(2),
sigset(2), wait(2).
���������������
��. ��������������� � signal(2).
�����������
����������� �����������, ��� ��� �� ���������� ������
exit ���������� ������� �� ������������.
|