• Listing 2 shows one way to register a signal handler.

    清单2给出了注册信号处理程序的方法。

    youdao

  • Suppose that the signal handler USES gethostbyname, which is non-reentrant.

    假定信号处理器使用了不可重入的gethostbyname

    youdao

  • The code in Listing 8 implements a signal handler to deal with the incoming SIGCHLD signal.

    清单8中的代码实现了一个处理传入SIGCHLD信号的信号处理程序。

    youdao

  • The process then continues executing, but the instructions in the signal handler are now executed.

    然后进程继续执行现在执行信号处理器中的指令

    youdao

  • This example shows what can happen if a signal handler runs in the middle of modifying a variable.

    这个例子展示了修改某个变量过程中运行信号处理器可能发生什么事情?

    youdao

  • Saving and restoring the value of errno in the signal handler, as follows, can resolve the problem

    如下信号处理器保存恢复errno可以解决这一问题

    youdao

  • Now, in the signal handler you can't tell what the process was executing when the signal was caught.

    现在信号处理器中并不知道信号被捕获进程正在执行什么内容。

    youdao

  • The first way is to install a signal handler for the SIGBUS signal, and then simply call return in the handler.

    第一种方式SIGBUS信号设置信号处理程序,处理程序中简单执行return语句。

    youdao

  • The only thing you should normally do inside a signal handler is set a global flag that will be processed later.

    信号处理器内部通常应该的一设置一个在以后处理的全局标记

    youdao

  • Note that condition functions are not asynchronously signal-safe and should not be called from a signal handler.

    注意条件函数不是异步信号安全的,因此不能信号处理函数调用

    youdao

  • The best way to avoid the need to allocate memory in a handler is to allocate, in advance, space for signal handlers to use.

    避免处理器分配内存最好方法信号处理器预先分配使用的内存。

    youdao

  • But you're better off setting flags — and nothing else — in a signal handler, as opposed to trying to create sophisticated handlers.

    但是最好只在一个信号处理器设置标记(别的什么都不做),这胜过尝试创建复杂的处理器。

    youdao

  • The signal handler is called with a value of 18 (SIGCHLD), the child's exit is acknowledged, and the parent goes back to its sleep (60).

    然后使用18 (SIGCHLD)来调用信号处理程序,确认进程退出并且进程返回sleep (60)。

    youdao

  • What if the process was in the middle of allocating additional memory on its heap using malloc, and you call malloc from the signal handler?

    如果进程正在使用malloc分配额外的内存时,通过信号处理器调用 malloc,那会怎样?

    youdao

  • If the signal handler returns, the process continues executing the normal sequence of instructions it was executing when the signal was caught.

    如果信号处理器返回,则进程继续执行信号捕获正在执行正常指令序列

    youdao

  • EINTR — the function was interrupted by a signal, which was caught by a signal handler in the program, and the signal handler returned normally.

    程序中的信号处理程序捕获函数的执行某个信号中断,信号处理程序然后按正常方式返回

    youdao

  • When the signal handler doesn't disable, the process might show up in the "current" status as signal handling, which might hide the real problem.

    禁用信号处理程序进程当前状态可能表现正在进行信号处理从而可能隐藏真正问题

    youdao

  • Listing 8 is slightly more complex than the previous example because of the sigset function, which assigns a function pointer to a signal handler.

    由于使用sigset函数(它信号处理程序分配个函数指针),清单8一个示例稍微复杂一点,。

    youdao

  • Normally, the signal handler will return and cause the ioctl to be entered at exactly the point where it was left so the SPU program can continue.

    通常信号处理程序将会返回进入上次离开ioctl位置处,这样SPU程序可以继续执行了。

    youdao

  • Or, you call some function that was in the middle of the manipulation of the global data structure and you call the same function from the signal handler.

    或者调用正在处理全局数据结构某个函数而在信号处理器中调用了同一个函数。

    youdao

  • Suppose the signal handler prints a message with fprintf and the program was in the middle of an fprintf call using the same stream when the signal was delivered.

    假定信号处理器使用fprintf打印条消息,而信号发出时程序正在使用同一个进行fprintf调用

    youdao

  • When a signal that is being caught is handled by a process, the normal sequence of instructions being executed by the process is temporarily interrupted by the signal handler.

    进程处理捕获信号时,正在执行正常指令序列就会信号处理器临时中断

    youdao

  • The SIGNAL statement is used to explicitly raise an error and force the invocation of a handler.

    signal语句用于显式地发出一个错误强制调用处理程序

    youdao

  • In other words, the instruction processed by the control unit after dealing with the interrupt signal is the first instruction of the selected handler.

    话说,控制单元解决中断信号处理指令就是选中处理函数的第一条指令。

    youdao

  • Commands are not added until the dog will perform the exercise 8 out of 10 times that the handler gives a signal.

    训练员发出信号后,狗儿能够要求作出动作810加入口令

    youdao

  • If a handler wants his dog to go to his rug and points at the rug from behind the dog, that's a signal.

    如果训练者站后面指着小毯子想让小毯子上去,手势。

    youdao

  • If a handler wants his dog to go to his rug and points at the rug from behind the dog, that's a signal.

    如果训练者站后面指着小毯子想让小毯子上去,手势。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定