【发布时间】:2016-10-28 01:18:49
【问题描述】:
例如:
if (WIFEXITED(status)) {
printf("Im child, finish with status=%d\n", WEXITSTATUS(status));
是否可以使用信号名称而不是编号?
【问题讨论】:
例如:
if (WIFEXITED(status)) {
printf("Im child, finish with status=%d\n", WEXITSTATUS(status));
是否可以使用信号名称而不是编号?
【问题讨论】:
仅供参考
WIFEXITED(status) Description: Returns True if status was returned for a child that terminated normally. In this case, we can execute WEXITSTATUS(status) to fetch the value that the child passed to exit, _exit,or _Exit.
【讨论】: