Commit Graph

54 Commits

Author SHA1 Message Date
Brad King 5dae3d67f4 BUG: Do not close handle obtained from GetModuleHandle which does not increase the reference count of the module. 2005-11-16 11:36:05 -05:00
Brad King 7e7249cbd1 BUG: Fixed reusability of process object by clearing each pipe's Closed flag when cleaning up. 2005-07-07 09:05:59 -04:00
Brad King 5df6d35dc6 BUG: Fixed polling feature of WaitForData. 2005-06-17 14:05:35 -04:00
Brad King fbe5a2e629 COMP: Fixed unused parameter and constant conditional warnings. 2005-04-22 09:21:19 -04:00
Brad King 8567e7d0bc BUG: Do not close stdout/stderr pipes in parent if they are shared. 2005-04-21 16:05:09 -04:00
Brad King caf54b2093 COMP: Adding work-around for CMake dependency scanning limitation. Any configured header included by KWSYS_HEADER() in a .c or .cxx file in kwsys itself must use this hack to get dependencies. 2005-04-13 16:46:09 -04:00
Andy Cedilnik 4a390c174c ENH: Do kwsys testing as part of cmake testing, command line arguments are not experimental and add simple test for systemtools 2005-04-13 13:57:24 -04:00
Brad King 43225860b6 ENH: Re-arranged handling of the two threads per pipe to improve readability of code. 2004-07-13 16:50:55 -04:00
Brad King a6c9cb9b0d BUG: Fix for read pipe wakeup when child is writing alot of data and may fill the pipe buffer before WriteFile is called. 2004-07-13 16:23:49 -04:00
Brad King 1d6eecd949 ENH: Added windows implementation of Disown/Detach. 2004-07-07 18:15:20 -04:00
Brad King ae28d93a72 ENH: Added kwsysProcess_Disown an kwsysProcess_Option_Detach to allow detached processes to be created. Currently implemented only on UNIX. 2004-07-07 17:27:50 -04:00
Brad King b6fb2fe8f9 BUG: Do not wait for children to exit when killing them. Sometimes they do not really die. 2004-05-13 10:08:09 -04:00
Brad King 6c4ab7ec52 ENH: Adding native windows process tree kill to ProcessWin32.c. This replaces the ProcessWin32Kill.c implementation. 2004-05-10 14:54:22 -04:00
Brad King dd70c8f82d ERR: Avoiding namespace pollution: kw_sys -> kwsys_ns. Also undefining the macro at the correct time. 2004-05-10 13:38:33 -04:00
Andy Cedilnik 8da9b14cc6 ERR: On Borland preprocessor goes into recursion which adds some weid spaces in the include name. This fixes it 2004-05-07 14:22:48 -04:00
Bill Hoffman 99a1ec6c6d BUG: make sure the correct state is set for expired processes 2004-05-07 12:52:46 -04:00
Brad King db4fd2a15d ENH: Adding process tree killing for Win32 process execution. 2004-05-06 15:34:04 -04:00
Brad King d23636d48b BUG: Corrected detection of exceptional exit code. 2004-01-28 10:59:46 -05:00
Bill Hoffman dd7f85a9dc ENH: fix for build on cygwin mingw 2004-01-26 13:32:20 -05:00
Brad King 1c8f885f9d ENH: Added GetExceptionString method to provide an error description when GetState returns Exception. 2003-12-30 16:23:16 -05:00
Brad King 802601b606 ENH: Added SetPipeShared method to allow stdout and stderr pipes to be shared with the parent process. 2003-12-16 17:20:01 -05:00
Brad King ce8a34907a ENH: Updated copyright. 2003-12-15 16:30:46 -05:00
Brad King c9e9e8d121 STYLE: Fixed typo on comment. 2003-12-14 13:48:18 -05:00
Brad King 5dcbef7dfe ENH: Using CreateFile with FILE_FLAG_DELETE_ON_CLOSE to automatically delete the Win9x forwarding executable even if the parent process crashes. 2003-12-14 13:47:39 -05:00
Brad King 1f40a4205b ENH: Added SetPipeFile method to allow the process pipeline stdin, stdout, and stderr to be redirected from/to files. 2003-12-13 14:13:54 -05:00
Brad King dc96992e56 ENH: Code is now robust to New method returning NULL. 2003-12-13 10:36:22 -05:00
Brad King b777b8656e ENH: Cleaned up pipe numbering. 2003-12-07 14:09:58 -05:00
Brad King ed853b5d70 ENH: Removed pipe selection argument from WaitForData method in kwsysProcess. This greatly simplifies its use. 2003-12-05 11:53:17 -05:00
Brad King 97b469537b STYLE: Removed trailing whitespace. 2003-12-05 11:37:28 -05:00
Brad King 9ce4e23715 BUG: Process startup-info struct dwFlags were being set incorrectly due to a change in statement order. 2003-12-05 11:19:43 -05:00
Brad King ad8bc4b1a4 ENH: Merged changes from KWSys-MultiProcess-bp to KWSys-MultiProcess-b2t-1-mp to main tree. This introduces support for process pipelines. 2003-12-03 09:20:05 -05:00
Brad King 37bbb27bfa ERR: Removed extra variable assignments. 2003-11-04 09:00:18 -05:00
Brad King 8f8cc16ea3 BUG: Removed CloseHandle in case of error in DuplicateHandle. According to documentation, DuplicateHandle will close the source handle regardless of error condition. 2003-11-04 08:56:12 -05:00
Brad King beda09a96b ENH: Made error message consistent between win9x and non-win9x version of error reporting. 2003-08-13 18:08:07 -04:00
Andy Cedilnik 4bad15e4b2 ENH: Cast into apropriate type to remove warning 2003-08-07 15:39:07 -04:00
Brad King 07865fd113 BUG: Need to provide stdin to child processes. 2003-08-06 09:27:56 -04:00
Brad King 59d886d0f4 ENH: Added show/hide window support. 2003-08-05 15:10:33 -04:00
Brad King 27289e3267 ENH: Added SetOption/GetOption methods for platform-specific options. 2003-08-05 14:27:47 -04:00
Brad King d715fba1cb ENH: Added use of KWSYS_HEADER macro in c and cxx files to include kwsys headers through their configured namespace. 2003-07-10 14:32:30 -04:00
Brad King 78edd51671 ENH: Made call to FormatMessage more robust. 2003-07-07 09:38:14 -04:00
Brad King 2b8bfb3b5d ENH: Implemented SetWorkingDirectory method on Windows. 2003-07-07 09:10:08 -04:00
Brad King 179abe7ffe ENH: Using GetTempPath instead of TEMP environment variable to get a location to write the Win9x forwarding executable. 2003-07-06 20:40:51 -04:00
Brad King 33566642a0 BUG: Argument parsers do not always remove double quotes from around an argument that has no spaces. 2003-07-03 18:33:53 -04:00
Brad King f24a0f17ea ERR: Added cast to remove warning. We know the length of the string will not be beyond 2^31. 2003-07-02 08:35:30 -04:00
Brad King 6b1770932e ERR: Should use %p to pass HANDLE values on a command line, not %d. 2003-07-01 13:27:42 -04:00
Andy Cedilnik 1f5defbdcf ERR: Remove warnings on Windows 2003-06-30 10:44:35 -04:00
Brad King ef76ed76f8 ENH: Added DLL support. 2003-06-30 10:30:38 -04:00
Brad King 30f4c011b0 BUG: Must return Exception status correctly. 2003-06-18 17:27:10 -04:00
Brad King 7e80f2f874 ENH: Added documentation to interface. Finished process exit code interpretation implementation prototype. 2003-06-18 17:06:21 -04:00
Brad King 751509cf10 ERR: Added error check for malloc of process control structure. 2003-06-12 16:18:07 -04:00