阅读背景:

在使用waitpid()之后,我对wifsign ()/WTERMSIG()宏有一个问题

来源:互联网 

In this code C i launch a program from the command line and when it is closed from a signal different from SIGTERM (signal for normal end) my code should relaunch the initial program passed from the command line. But it is not so, in fact my code never relaunchs program saying that it is properly terminated.In practice my condition"if(WTERMSIG(status)!=SIGTERM)" works bad, WHY????? :'(In this code C i launch a program from the comm




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: