默认情况下,Purify是不会修改您程序的正常退出状态的。
By default, Purify does not modify the normal exit status of your program.
正如您可以使用管理命令行参数和退出状态的任何计算语言一样,存在各种各样的可能性。
As you can use any computing language that manages command-line arguments and exit status, the possibilities are almost endless!
最常见的值应该是SPE_EXIT(程序成功执行,在这个结构中已经保存了一个退出状态)。
The most common value should be SPE_EXIT (the program was successful and an exit status has been stored in the structure).
如果设置这个变量,那么当脚本或程序返回非零值时tcsh会显示退出状态,这会指出潜在的错误。
If you set this variable, TCSH displays the exit status whenever a script or program returns a non-zero value, thereby indicating a potential error.
类似地,||控制操作符分隔两个命令,并且仅当第一个命令返回非零退出状态时才运行第二个命令。
Similarly, the || control operator separates two commands and runs the second command only if the first command returns a non-zero exit status.
使用&&控制操作符来组合两个命令,以便仅当第一个命令返回零退出状态时才运行第二个命令。
Use the && control operator to combine two commands so that the second is run only if the first command returns a zero exit status.
如果一个命令的第一个字符是连字符(-),那么该行中剩余的命令都会执行,不过其退出状态会被忽略。
If the first character of a command is a hyphen (-), the remainder of the line is executed, but its exit status is ignored.
errexit:如果某个命令产生非0(零)的退出状态并且设置了err陷阱,则执行err陷阱并退出。
Errexit: if a command has an exit status of anything but 0 (zero), execute the err trap (if it is set and exists).
然而,如果Purify发现任何访问错误或者内存泄露,您可以利用一个具体的退出状态来选择使您的程序退出。
However, you can choose to have your program exit with a special exit status if Purify finds any access errors or memory leaks.
列表1是一个例子,它利用这个- exit -status选项并使用这个退出状态来决定是否有错误在这个程序中被发现。
Listing 1 is an example that exploits the -exit-status option and USES the exit status to determine whether any errors were found in the program.
注意,当您运行该命令时,实现最终的退出状态的if语句将永远无法满足条件,因为脚本在遇到cp命令的非零返回状态时将退出。
Notice that when you run the command, the if statement for the last exit status is never reached because the script exits upon a non-zero return status of the cp command.
稍后您将了解到,我们可以使用多种操作进入和退出单个状态。
As we will see later, we can have multiple operations entering and exiting a single state.
每当进入或退出该状态时,就会分别执行这些操作。
These actions occur whenever the state is entered or exited, respectively.
报告测试进度有时候是测试结果的分析,有时候是对高层次的里程碑、状态门,或进入和退出标准。
Reporting testing progress is sometimes a forensic analysis of testing results, and sometimes it's reporting on high-level milestones, state gates, or entry and exit criteria.
这意味着状态进入或退出操作将不会被转换触发。
This means that state entry and exit actions will not be triggered by the transition.
在TIME_WAIT状态退出之后,套接字被删除,该地址才能被重新绑定而不出问题。
After the TIME_WAIT state has exited, the socket is removed, and the address can be rebound without issue.
一般来说,那些已经很久出于失业状态的人最有可能退出找工作的群体。
Typically, those who have been unemployed the longest are the most likely to drop out of the job hunt.
CRITICAL—退出代码2—表示服务处于危险状态。
Critical-exit code 2-indicates a service is in critical state.
尽管退出摩根大通网球公开赛后,莎拉波娃还没有参加过正式的比赛,她说自己会以良好的状态出现在即将举行的美国网球公开赛上。
Though Sharapova hasn't played since withdrawing from the JPMorgan Chase, she said she's going into the U.S. Open in good shape.
例如,在清单3中,当执行square - root(- 22.0)时应该产生错误消息,程序退出,返回状态应该是- 1而不是- 1.0。
For example, in Listing 3, it would be good to receive an error message when doing square-root (-22.0) and exiting the program with return status -1 instead of returning -1.0.
dequeue _ task:当某个任务退出可运行状态时调用该函数,它将从红黑树中去掉对应的调度实体,并从nr_running变量中减1。
Dequeue_task: When a task is no longer runnable, this function is called to keep the corresponding scheduling entity out of the red-black tree. It decrements the nr_running variable.
优雅的退出当你在函数中检测到一个错误或者无效状态时,最好的处理方式是什么呢? 返回一个错误代号(error code),抛出一个异常还是调用assert()?
When you detect an error or invalid state in a function, what's the best way to handle it?
在状态进入和退出时可能执行其他动作。
Additional actions may be performed on state entry and exit.
一旦函数返回了超出范围的值,那么该值将传送到另一个处理程序,或者状态机在调用了一个什么也不做的终态处理程序后就退出。
Once the function returns a value outside that range, either the value is passed to a different handler or the state machine exits after calling a do-nothing end-state handler.
打开他们,只花5分钟,快速的浏览下,如果有必要就更新下状态或者回复下,然后退出。
Open them for 5 minutes, do a quick scan, post an update or reply if necessary, then get out.
如果计算所得的降水像素超出阈值参数,则退出循环并输出“raining”状态。
If enough precipitation pixels have been counted to exceed the threshold parameter, exit the loops and write the "raining" status.
如果IBMCognos8SDK应用程序不会显式退出,会话将保持激活状态,直到超时为止。
If an IBM Cognos 8 SDK application does not explicitly log off, the session will remain active until it is timed out.
上述步骤完成后,启动程序系统退出工作预备状态,将电源钥匙逆时针旋转取出。
After the steps above are finished, the program system will quit the state of operating preparation. The power key will be drawn out by turning counterclockwise.
讨论的最大议题之一是在当前情况已改善的状态下,如何以及何时开始削减财政赤字和退出经济刺激手段。
One of the big issues to discuss is how and when to reduce deficits and economic growth measures as conditions improve.
讨论的最大议题之一是在当前情况已改善的状态下,如何以及何时开始削减财政赤字和退出经济刺激手段。
One of the big issues to discuss is how and when to reduce deficits and economic growth measures as conditions improve.
应用推荐