Jump to content

proc_terminate() and proc_get_status() on Windows


asampat

Recommended Posts

Hello,

 

I am trying to use proc_terminate() and proc_get_status() on a Windows Server 2008 system to terminate an exe started by proc_open() and have a couple of questions regarding these functions:

 

1. Does proc_terminate() send a SIGTERM signal to the Windows (child) process launched by proc_open()? I want to be able to catch the SIGTERM signal in my process so that I can shut it down cleanly. Based on my reading of the documentation, it seems that on Windows, no signal is sent to the process. Is this true?

 

2. The documentation for proc_get_status() says that the status parameters 'signaled' and 'stopped' are always set to FALSE on Windows. Again, does this mean that no signal is ever sent by proc_terminate() to the child process?

 

Any help on clarifying this for me would be greatly appreciated. Thanks in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.