Commit graph

19 commits

Author SHA1 Message Date
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)