Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://mavr.sao.ru/hq/sts/linux/book/c_marshall/subsubsection2_18_4_1_4.html
Дата изменения: Unknown Дата индексирования: Fri Dec 28 20:32:56 2007 Кодировка: Поисковые слова: launch |
int exit(int status) - terminates the process which calls this function and returns the exit status value. Both UNIX and C (forked) programs can read the status value.
By convention, a status of 0 means normal termination any other value indicates an error or unusual occurrence. Many standard library calls have errors defined in the sys/stat.h header file. We can easily derive our own conventions.
A complete example of forking program is in Appendix and is originally titled fork.c