TheAssassin
fb80d6a4f4
Update ignore patterns
2020-12-10 22:32:37 +01:00
TheAssassin
575dde281d
Switch to GitHub actions
2020-12-10 22:24:35 +01:00
TheAssassin
3e05627373
Merge pull request #156 from patrickelectric/fix_include_std_runtime_error
...
subprocess: Add missing include for std::runtime_error
2020-11-18 18:19:48 +01:00
Patrick José Pereira
73f3126a59
subprocess: Add missing include for std::runtime_error
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2020-11-18 11:58:15 -03:00
TheAssassin
b6a1ba290e
Close file descriptors when process has exited
2020-10-07 04:37:50 +02:00
TheAssassin
3c21d86574
Improve file descriptor connection
...
Instead of passing the fd array for no real reason, the actual fd is passed from now on. The lambda now also logs error message received via errno.
2020-10-07 04:25:14 +02:00
TheAssassin
2554b35403
Check return code of ::close
...
It appears to be pretty common not to check the return code, but it's a serious programming flaw.
2020-10-07 03:37:00 +02:00
TheAssassin
bfcde878e2
Log error when pipe creation fails
2020-10-05 22:35:15 +02:00
TheAssassin
04d5321a5f
Merge pull request #148 from JokerQyou/master
...
Read ldd error message from both stdout and stderr
2020-09-25 14:18:42 +02:00
Joker_
76f1d8fee5
Read ldd error message from both stdout and stderr
2020-09-23 11:49:24 +08:00
TheAssassin
e4fff0a5b7
Merge pull request #146 from linuxdeploy/fix-145
...
Read subprocesses' pipes until they're empty
2020-09-22 13:46:31 +02:00
TheAssassin
407ecc408d
Read subprocesses' pipes until they're empty
2020-09-22 13:04:23 +02:00
TheAssassin
8ee0e43c23
Switch to new subprocess lib in type 0 plugins, mk. 3
...
This commit fixes the remaining buffer issues by introducing a little more complexity. It shall be refactored in the future to decrease complexity again, but for now, it works well and function is more important than form at this point.
CC #143
2020-09-04 18:02:40 +02:00
TheAssassin
e9bbbc80f4
Switch to new subprocess lib in type 0 plugins, mk. 2
...
Apparently fixes all buffer-related crashes, but there's a few minor bugs left.
CC #143
2020-08-31 08:39:43 +02:00
TheAssassin
68f4655fc4
Add method to write from buffers to ldLog streams
2020-08-31 06:30:06 +02:00
TheAssassin
1072c6d9f0
Improve check_output performance
2020-08-31 05:08:24 +02:00
TheAssassin
f33dc8dd34
Switch to new subprocess lib in type 0 plugins, mk. 1
2020-08-31 04:41:01 +02:00
TheAssassin
6621f1edf7
Forgot to add pipe reader to CMake
2020-08-31 04:20:40 +02:00
TheAssassin
ee73ac6c8e
Use new pipe_reader in subprocess's check_output
...
The class will read until the process quits (or until memory's up).
TODO: reduce load on CPU with some sleep (right now, it's pretty much some busy waiting)
2020-08-31 04:20:03 +02:00
TheAssassin
66691ee882
Add new helper class pipe reader
...
Implements synchronous, non-block reading from pipes.
2020-08-28 17:36:56 +02:00
TheAssassin
e91b459fce
Use std::distance instead of pointer arithmetics
2020-08-08 11:54:58 +02:00
TheAssassin
3f86f178a5
Use classic C string handling
...
That way, we don't have to allocate memory, and it's also shorter.
2020-08-08 11:49:17 +02:00
TheAssassin
a8975e0e50
Clean up memory in case exec* fails
...
Prevents memory leaks.
2020-08-08 11:44:21 +02:00
TheAssassin
6c47939fdc
Fix initialization bug
2020-08-08 11:34:02 +02:00
TheAssassin
8663e5bf26
Update license information in help text
2020-08-08 01:06:51 +02:00