Commit graph

33 commits

Author SHA1 Message Date
Thulinma
fd123c8c1f Listening sockets now closed when forking child processes, preventing lock of ports when children aren't killed. 2016-04-22 09:30:32 +02:00
Erik Zandvliet
1f4b523b1b Initial TS Input commit 2015-09-10 00:54:55 +02:00
Thulinma
243a05c8af Removed unused code from procs library, updated and simplified connector handler in controller. 2015-04-16 12:23:03 +02:00
wouter spruit
688f339aab added pid/timeout/kill functionality to stats 2015-03-03 11:22:42 +01:00
Thulinma
9b798275ea Improved Procs::StartPiped error reporting. 2014-07-29 14:26:54 +02:00
Thulinma
e090a9368d Fixed long forgotten merges. 2014-06-18 11:52:12 +02:00
Thulinma
8c01ec8897 Such style. (Code style unification) 2014-06-18 10:39:27 +02:00
Thulinma
57bcd8f25c Fixes and new functionality by Wouter Spruit, mostly for the HTTP proxy rewrite. 2014-06-18 10:38:40 +02:00
Thulinma
0e5d838a20 Shared Memory updates 2014-04-04 02:08:05 +02:00
Thulinma
0fe0c1fb4f Fixed slow process exit bug, improved debug messaging for procs. 2014-01-27 09:41:24 +01:00
Thulinma
5c0f053006 Prettified error messages, first work on Util::Config server helpers. 2014-01-27 09:41:24 +01:00
Thulinma
2d0f25b7be Fixed a few bugs in Util::Procs SIGCHILD handling / isActive function. 2013-09-30 13:25:20 +02:00
Thulinma
6675b647b8 Some static/non-static fixes to procs/stream library, updated converter to make use of getOutputOf function instead of re-implementing this. 2013-08-27 00:29:04 +02:00
Thulinma
6f7b300bf5 Fixed slow-working Util::Procs terminate handler. 2013-08-25 02:05:20 +02:00
Thulinma
b907ade842 Removed some verbosity from procs library. 2013-08-12 16:24:10 +02:00
Thulinma
0daa757e92 Added getOutputOf functions to easily retrieve output of executed applications. 2013-08-07 16:04:34 +02:00
Thulinma
588e171733 Those last two commit, but slightly better. 2013-07-23 16:23:52 +02:00
Thulinma
9cdf8d92a1 Fixed a bug. (DTSC lib mistakenly wiped metadata when seeking backwards, re-re-fixed proc child signal problems) 2013-07-23 15:52:34 +02:00
Thulinma
6a72fddf7b Fixed edge case of interrupt handler for catching ended child processes. 2013-07-23 14:28:35 +02:00
Thulinma
10dc56c338 Fixed a race condition in process status checking. 2013-06-10 15:18:34 +02:00
Erik Zandvliet
dce6d4b030 Updates to StartPiped (added std::string version and a 2-process variant), also updated conversion to allow for status checks (not fully functional yet) 2013-06-06 15:30:37 +02:00
Thulinma
06f023f3df Tweaked Util::Procs exit handler timings. 2013-03-24 20:18:22 +01:00
Thulinma
bf69dacefd Added automated exit handler in Util::Procs. 2013-03-19 14:41:07 +01:00
Thulinma
aa5056ee3d Fixed compiling on OSX, also fixes DDVTECH/mistlib#1 2013-03-14 00:13:07 +01:00
Thulinma
eb6c4ecbcb Fixed possible segmentation faults in StopAll() 2013-01-14 14:52:49 +01:00
Thulinma
38ef8704f8 Global cleanups and standardization of code style. 2012-12-11 11:03:33 +01:00
Thulinma
ca0fd8a641 Fix Util::TerminationNotifier deadlock when calling malloc() inside a signal handler. 2012-08-24 15:09:35 +02:00
Peter Wu
36c7eed7e3 procs: fix leakage of pids in child process 2012-08-15 11:49:21 +02:00
Peter Wu
fa5d27b085 procs: add support for easy redirection to dev null
Simply set a NULL pointer for a fd, StartPiped will then take care of opening
/dev/null, redirecting fds to it and close it when necessary.
2012-08-15 11:49:21 +02:00
Peter Wu
b994bab6d2 Add new process function including fds
Based on BiPipe from MistPlayer branch

v2: fix dup2 of wrong fd, fix invalid fd debug print
2012-08-15 11:49:21 +02:00
Peter Wu
06167128bf Add process termination registration
Edited patch because of context change due to:
commit 28548f35b0
Author: Thulinma <jaron@vietors.com>
Date:   Tue Aug 14 20:53:05 2012 +0200

    Do not report part-termination of processes.
2012-08-15 11:48:23 +02:00
Thulinma
28548f35b0 Do not report part-termination of processes. 2012-08-14 20:53:05 +02:00
Thulinma
ad410a2e79 Convert to autotools build system for cleanness (part1). 2012-05-08 19:19:42 +02:00
Renamed from util/procs.cpp (Browse further)