Commit Graph

114 Commits

Author SHA1 Message Date
Brad King 40adb2ce03 ENH: Adding tests KWSYS_C_HAS_PTRDIFF_T and KWSYS_C_HAS_SSIZE_T to help ProcessUNIX.c build everywhere without warnings. 2006-10-04 17:27:17 -04:00
Brad King 48ee381e6b BUG: Need to initialize to not use native pipes. 2006-10-03 10:26:32 -04:00
Brad King 6eef6638a5 ENH: Added Process_SetPipeNative method to allow user code to override the pipes connected to the child pipeline. 2006-10-03 09:10:03 -04:00
Brad King 9b2b2b5f1b COMP: Use SA_RESTART only if it is defined for the current platform. This partially addresses bug#3556. 2006-08-01 14:28:03 -04:00
Brad King 6438bec4c9 ENH: Added Option_Verbatim to run whole command lines directly. 2006-06-15 14:40:42 -04:00
Brad King 9b74e597be BUG: Do not leak global table of processes. 2006-05-24 10:13:18 -04:00
Brad King 35334d01cd ENH: Re-enabling SIGCHLD handling implementation with a fix for Cygwin. 2006-05-23 11:48:15 -04:00
Brad King 29b75dda97 BUG: Reverting previous change until it can be fixed on Cygwin. 2006-05-22 15:11:42 -04:00
Brad King 0d594a4538 ENH: Implemented handling of SIGCHLD to detect the termination of immediate children. This allows grandchildren to remain running after the children exit. 2006-05-21 10:26:28 -04:00
Brad King 3dd70af5a0 ENH: Enabling process tree killing on Cygwin. 2006-05-20 18:50:27 -04:00
Brad King bde71e9668 ENH: Enabled process tree killing on AIX. 2006-03-08 13:06:46 -05:00
Brad King 6fb7bac013 ENH: Enabled process tree killing on the SGI. 2006-03-08 12:42:59 -05:00
Brad King 95f86d5d6f ENH: Enabled process tree killing for FreeBSD and Sun. 2006-03-08 12:36:14 -05:00
Brad King 17d79233ff ENH: Enabled process tree killing on HP-UX. 2006-03-08 12:12:37 -05:00
Brad King c31c18bb9c BUG: Do not leak ps FILE when the process starts but reading the header fails. 2006-03-08 11:57:41 -05:00
Brad King 3c39accee9 ENH: Added implementation of process tree killing that runs "ps" to traverse the tree. 2006-03-08 11:38:51 -05:00
Brad King 8489a94101 BUG: When more than one command is given and one of them fails to start and the rest are killed, do not forget to reap the killed children. 2005-12-31 12:59:31 -05:00
Brad King e3876623f6 STYLE: Documented reference to "man select_tut". 2005-11-16 11:39:43 -05:00
Brad King 9fd4560ba2 BUG: Fixed polling capability of WaitForData. 2005-06-17 13:57:27 -04:00
Brad King 26f82b064c ENH: Removing previous debug code. 2005-05-16 13:42:23 -04:00
Brad King b45071cc60 ENH: Adding debugging code for freebsd. 2005-05-13 14:44:20 -04:00
Brad King a4aefb4faa BUG: struct timeval uses unsigned types on at least one platform (QNX). Alot of the time logic assumes a signed type. Switch to using a signed representation that is converted to the native representation only for system calls. 2005-05-10 16:36:49 -04:00
Brad King 3336b74c01 COMP: Added initializer to avoid warning. It is not really needed, though. 2005-05-05 09:05:15 -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 c98bd6249a BUG: When killing a child all the pipe read ends should be closed. This will allow a child that is blocking while waiting to write to the pipe to wake up and receive the kill signal properly on cygwin. 2005-04-19 11:52:25 -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
Andy Cedilnik 588653c4e8 COMP: Remove warnings about shadow variables 2005-02-27 17:36:00 -05:00
Brad King 5701282e98 ERR: Fixed missing return warning. Code was not reachable anyway. 2004-07-09 11:49:04 -04:00
Brad King 55c1c3b33f BUG: Do not disown if process has already been killed or the timeout expired. Also need to call kwsysProcessCleanup to disown. 2004-07-07 17:46:34 -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 6df06682a5 ERR: Using KWSYSPE_PIPE_BUFFER_SIZE in place of separate bufferSize constant for consistency. 2004-07-07 13:03:56 -04:00
Bill Hoffman bbc9e4a9dc no c++ comments in c 2004-07-04 00:05:04 -04:00
Bill Hoffman 4772d6b649 fix for hp build 2004-07-03 12:00:41 -04:00
Brad King e6145d6878 BUG#392: Implementation of process tree killing for systems with /proc filesystem. 2004-07-02 16:39:29 -04:00
Brad King aeea4895a5 ERR: SIGSEGV == SIGBUS on BeOS. 2004-03-12 14:43:32 -05:00
Brad King 9651c9d996 ERR: Fixed function prototypes with zero arguments to be C-style. 2004-01-22 14:44:44 -05:00
Andy Cedilnik 9cf5bb4bb0 BUG: If working directory does not exists, exit 2004-01-22 11:16:43 -05:00
Andy Cedilnik d609e037b9 BUG: Fix valgrind error. If working directory is not set do not do chdir 2004-01-21 13:38:09 -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 d3f1410be3 ERR: Added include of sys/stat.h for open functions mode bits. 2003-12-13 14:19:45 -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 ddd3190387 ERR: Added missing static storage class specifier for kwsysProcessCreate. 2003-12-04 13:56:00 -05:00
Brad King cee49e74cf ERR: Some platforms define stdin, stdout, and stderr as macros. Renaming these symbols to StdIn, StdOut, and StdErr. 2003-12-03 13:37:21 -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 9ec524def6 STYLE: Removed trailing whitespace. 2003-11-28 09:48:42 -05:00
Brad King ef603d12f9 ENH: Treating SIGBUS as a fault by default. 2003-08-13 14:21:39 -04:00
Brad King 27289e3267 ENH: Added SetOption/GetOption methods for platform-specific options. 2003-08-05 14:27:47 -04:00
Brad King 878b5792b9 BUG: Can't close stdin. 2003-08-05 13:53:30 -04:00
Brad King e99e9baca4 BUG: Added missing zero-initialization of struct sigaction. 2003-08-05 11:34:39 -04:00
Brad King 5ffb75bc6c BUG: GetErrorString should return ErrorMessage buffer, not the pipe buffer. 2003-08-05 09:07:54 -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 36880845b6 ERR: Using strncpy instead of snprintf for portability. 2003-07-09 16:18:14 -04:00
Brad King b5fec4a3c8 ENH: Implemented SetWorkingDirectory method. 2003-07-07 09:12:34 -04:00
Andy Cedilnik 125b795637 ENH: Start working on Working Directory support 2003-07-07 08:36:40 -04:00
Brad King 5b6920ed16 Removed Exception_Abort because there is no windows version. Also made ExitValue consistent with windows when a signal kills the process. 2003-06-18 17:19:44 -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 1e77222b04 ERR: Added static specifier to static function definitions to quiet warnings on HP compiler. 2003-06-10 16:55:50 -04:00
Brad King 96ccaed54d ENH: Added Process execution implementation. 2003-06-10 15:46:31 -04:00