Bryan Roe
28db019101
1. Added ability to spawn joinable threads on linux
...
2. Added ILibThread_TimedJoin()
2020-04-20 21:51:55 -07:00
Bryan Roe
71d4b1edca
1. Fixed compiler warnings
...
2. Updated thread cleanup/finalizer logic to rely on ctxd if necessary
2020-04-20 17:01:53 -07:00
Bryan Roe
417cab5a83
Fixed typo
2020-04-18 14:24:24 -07:00
Bryan Roe
743a38eeeb
1. Updated WaitHandle_Add2 to no use APC to dispatch to event loop, becuase winsock is not re-entrant, and don't want to risk corruption
...
2. Updated memory handling for async methods in Generic Marshal
2020-04-18 13:53:38 -07:00
Bryan Roe
5ba1288cdf
Modified JS runtime to use ILibMemory_Extra to point to udata structure,
...
then used that for consistency checks
2020-04-17 15:05:47 -07:00
Bryan Roe
e3b8cc4d2c
1. Fixed edge case bug, where TLS packet was corrupt
...
2. Added compile switch for KVM ALL TILES
3. Added compile switch for Debug fragmentation of Sends
4. Fixed compiler warnings
5. Added comments to makefile
2020-04-13 20:08:32 -07:00
Bryan Roe
9aaef732d9
1. Fixed bug where ILibAsyncSocket wrote a corrupt TLS packet
...
2. Removed linux work-around/hack that is not needed due to above fix
2020-04-12 01:42:49 -07:00
Bryan Roe
34a1b1a4d5
Added ability to fetch core hash
2020-04-08 17:57:28 -07:00
Bryan Roe
42f1ea97cf
Added db size threshold option
2020-03-27 21:14:39 -07:00
Bryan Roe
42b0113fae
Added support for minimum db.compact() threshold
2020-03-26 19:34:54 -07:00
Bryan Roe
cd111f0f6e
Added workaround for macOS LaunchD placing all parameters within quotes
2020-02-26 13:59:21 -08:00
Bryan Roe
1731670522
1. Fixed bug in process-manager.getProcessInfo() on linux
...
2. Updated agent-installer
3. Fixed JSON error in SimpleDataStore
2020-02-15 00:22:15 -08:00
Bryan Roe
7730d9a627
Updated serialization
2020-02-13 21:20:19 -08:00
Bryan Roe
675dae55a9
Added ability to serialize cached entries
2020-02-13 17:10:04 -08:00
Bryan Roe
937ae3b5d2
Added pid check for forkpty() initialization
2020-02-05 13:07:56 -08:00
Bryan Roe
ee10dbeb17
Fixed #include for FreeBSD
2020-02-05 11:13:25 -08:00
Bryan Roe
91ec72b34d
Fixed #include for FreeBSD/MacOS
2020-02-05 11:04:09 -08:00
Bryan Roe
afe0deacb2
Fixed bug where interactive shell was redirecting stderr
2020-02-04 17:15:51 -08:00
Bryan Roe
32592bd622
1. Updated environment variables, so that string values are coerced
...
2. Added ability to specify termios struct values via environment variables
2020-02-04 15:23:52 -08:00
Bryan Roe
888629c179
1. Fixed bug in command line msh flag feature, where terminating NULL wasn't added on read
...
2. Updated 'agentName' feature to send new command, instead of overriding host name
2020-01-29 10:09:01 -08:00
Bryan Roe
1d9908f944
Fixed warnings
2020-01-29 09:29:21 -08:00
Bryan Roe
3bcdb51656
1. Added ability to specify msh flags on command line
2020-01-28 23:48:05 -08:00
Bryan Roe
3c7d5effb2
1. Added pty and tcsetsize to child_process
...
2. Added ILibProcessPipe_Process_GetPTY to ILibProcessPipe
2020-01-27 17:08:45 -08:00
Ylian Saint-Hilaire
cc3fe1461e
Fixed TLS 1.3 state machine.
2020-01-20 22:49:10 -08:00
Bryan Roe
a9ef6d0f61
1. Fixed detached processes on Windows
...
2. Updated service-manager on Windows to add an uninstaller into Program Manager
3. Updated service-manager on Windows to try to delay spawn a process to delete a service, which is required if the service to be uninstalled is the currently running process.
2020-01-15 14:53:12 -08:00
Bryan Roe
4998eb173f
Fixed edge case bug on Windows, where a Resume could result in ReadFile getting called before getOverlappedResult was called, corrupting the read buffer.
2019-12-23 17:11:12 -08:00
Bryan Roe
8356cbf190
Added missing #ifdef around Windows Specific fixes
2019-12-05 10:56:13 -08:00
Bryan Roe
37acfa64f0
Fixed windows race condition between garbage collecting spawned process and exit handler, if the memory was reclaimed at just the right time
2019-11-28 09:57:04 -08:00
Bryan Roe
bac3533d29
Added missing #ifdef
2019-10-31 10:59:46 -07:00
Bryan Roe
1be7ee3394
Fixed DoWhile readloop on Windows, to fix some edge case reading race conditions
2019-10-29 10:58:41 -07:00
Bryan Roe
46aaa971ae
fixed compiler warning
2019-09-20 16:42:28 -07:00
Bryan Roe
365fe2d36f
Fixed bug where if WatchDog is specified on Linux, a compile error happens because of a typo
2019-09-19 16:35:47 -07:00
Bryan Roe
5d2e5dab8b
Added compile switch to support SSL/TLS key export for debug
2019-09-17 00:52:04 -07:00
Bryan Roe
eb76a93551
Fixed compiler warnings
2019-09-09 17:44:42 -07:00
Bryan Roe
72db242dee
Added ability to end stdin on child_process spawned process
2019-09-06 21:41:48 -07:00
Bryan Roe
d7f0424d2c
Updated crash handler on linux, so that if a core file would've been generated on crash, it will reset/restart the signal handler, so that a core file will be generated after logging the crash.
2019-08-27 15:00:18 -07:00
Bryan Roe
fa6836d17a
Added ability to generate Dump file on crash, on Windows
2019-08-26 14:16:39 -07:00
Bryan Roe
84882e0b52
Fixed the following bugs on Windows:
...
1. Normally when a process exits when a stream is paused, I delayed the exit propagation until resume was called, so data was not lost. However, if no data was read, resume may not get called, causing the descriptor to continually trigger the event loop. For example, if the user explicity killed the process, resume won't get triggered after the fact.
2. If the above descriptor continually triggers the event loop, other descriptors will not get serviced, which can cause a stall
3. The above two issues caused KVM issues on windows, where it would not clean up properly and leak handles because the exit wasn't gettign called. But at the same time there's a race condition depending on where in the event list the descriptor is, could cause future KVM sessions to stall.
2019-08-23 17:07:12 -07:00
Bryan Roe
66273f8950
1. Updated waitExit() for windows to support a timeout
...
2. Updated ProcessPipe for Windows, to disable inheritance on detach
3. Updated service-manager to support restart on self for windows
2019-08-07 15:23:13 -07:00
Bryan Roe
a89a3204c1
1. Added ability to query if Select was interrupted with APC
...
2. Updated So that before readableStream and 'exit' are dispatched, APC's are unrolled if 'select' was interrupted, preventing stack corruption caused by trying to make a re-entrant winsock call, which is not supported by winsock.
2019-08-07 11:32:33 -07:00
Bryan Roe
4cef81719e
1. Fixed upper limit for inline JS on command line
...
2. Updated win-info to be able to fetch list of installed apps
2019-07-31 15:14:01 -07:00
Bryan Roe
245a130b50
Fixed compiler warnings
2019-07-30 15:45:03 -07:00
Bryan Roe
3efdc27478
1. Updated so that APCs are used for thread dispatching for Read/Exit on Windows
...
2. Updated to add support for child_process.waitExit() on Windows.
2019-07-23 16:16:53 -07:00
Bryan Roe
58f0230c7a
fixed compiler warning
2019-07-17 17:14:41 -07:00
Bryan Roe
735ac0f0c9
Fixed compiler warnings
2019-07-16 15:12:21 -07:00
Bryan Roe
608c77106f
Merge branch 'master' of https://github.com/Ylianst/MeshAgent
2019-06-25 10:47:15 -07:00
Bryan Roe
bf3eabda1c
Fixed line endings, which caused compilation error with clang
2019-06-25 10:46:58 -07:00
Bryan Roe
e2bcd832b5
Fixed infinite loop bug... Check if OnSendOK needs to be sent
2019-06-24 17:23:32 -07:00
Bryan Roe
604e853354
fixed freebsd bugs
2019-06-20 16:48:38 -07:00
Bryan Roe
eb297dbfe8
Updated AsyncSocket_MultiWrite and WebRTC for OpenSSL/1.1.1c
2019-06-20 14:14:50 -07:00