|
|
|
|
 请教一个system()返回值的问题 - jim_che [ 2005-06-24 09:37 | 155 byte(s)]
 Re: 请教一个system()返回值的问题 - hoyt [ 2005-06-24 10:49 | 45 byte(s)]
 Re: 请教一个system()返回值的问题 - Atu [ 2005-06-24 10:49 | 509 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
man system
RETURN VALUE
The value returned is -1 on error (e.g. fork failed), and the return
status of the command otherwise. This latter return status is in the
format specified in wait(2). Thus, the exit code of the command will
be WEXITSTATUS(status). In case /bin/sh could not be executed, the
exit status will be that of a command that does exit(127).
man 2 wait
|
|
|
[Original]
[Print]
[Top]
|
|
|