简体   繁体   English

在WINDOWS中将信号从子进程发送到父进程

[英]Sending signals from child process to parent in WINDOWS

Ok question is simple. 好的问题很简单。 I create a child process in a parent process. 我在父流程中创建一个子流程。 They are communicating with pipeline but that is not important. 他们正在与管道进行通信,但这并不重要。 I want to detect if my child process closed, interupted, or may be throw an exception. 我想检测我的子进程是否已关闭,中断或可能引发异常。 Basicaly i want to control my child process. 基本上我想控制自己的孩子进程。 But in search of 2 days i couldn't find any way to do it in WINDOWS and i am getting frustrated to google about getting same "linux" solutions. 但是经过2天的搜索,我在WINDOWS中找不到任何方法来做,我对Google获得相同的“ Linux”解决方案感到沮丧。 None of the solutions in stackoverflow, given below, works for me. 下面给出的stackoverflow中的所有解决方案都不适合我。

Send messages from child process to parent 将消息从子进程发送到父进程

How can I send messages (or signals) from a parent process to a child process and viceversa in Perl? 如何在Perl中将消息(或信号)从父进程发送到子进程,反之亦然?

send signal from parent process to child in C 从父进程向C中的子进程发送信号

Sending signals between parent and child process 在父子进程之间发送信号

Windows没有Unix风格的过程控件(fork,wait,exec)或信令(signal,kill,procmask)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM