1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 15:23:39 +00:00
Commit Graph

59 Commits

Author SHA1 Message Date
Bryan Roe
70979ad761 1. Fixed process.kill() on windows to wait to complete
2. Updated self update on windows to handle stale processes
2020-05-20 21:10:02 -07:00
Bryan Roe
0e8bc420a3 Added BuildNumber back to os.name for windows 2020-05-17 23:38:39 -07:00
Bryan Roe
2277b99bd7 Updated os.name so that on Windows does not need admin to get better results 2020-05-16 15:30:51 -07:00
Bryan Roe
941ac6e192 1. Added NULL check
2. Added process._exit()
3. Fixed CancelIOEx usage
2020-05-03 19:40:32 -07:00
Bryan Roe
10f1f53912 1. Removed usage of wcstomb_s(), which doesn't support UTF8
2. Added WideToUTF8_stupid() helper for API calls that give you byte count instead of character count of a non-null terminated UTF16 string
3. Fixed a few more places to support UTF8
2020-04-30 16:20:37 -07:00
Bryan Roe
cf91d6c709 1. Fixed bug with os.tmpdir()
2. Updated ScriptMode, so current durrectory is not changed to script path
3. Fixed process.cwd() on windows to support UTF8
2020-04-30 11:51:41 -07:00
Bryan Roe
07371fed6a !. Fixed more exePath related UTF8 issues
2. Added os.tmpdir() support
3. Added Buffer.toString('utf16')
2020-04-30 01:40:03 -07:00
Bryan Roe
71bd469551 fix 2020-04-29 03:01:44 -07:00
Bryan Roe
c7959a8332 Added ability to close message-box on windows 2020-04-28 14:27:42 -07:00
Bryan Roe
19508fa79e 1. Updated os.Name and os.name() to fetch Windows name from older versions of Windows
2. Fixed compiler warning
2020-04-26 09:57:43 -07:00
Bryan Roe
cb95c0bbea 1. Fixed service-manager to include execute permission for user, fixing issue with Deepin Linux
2. Added os.Name property
2020-04-26 00:54:04 -07:00
Bryan Roe
54b291187b 1. Fixed compiler warning when NO_IFADDR is defined
2. Added pthread_timedjoin_np() workaround for older glibc/gcc
2020-04-23 16:47:57 -07:00
Bryan Roe
e7f46497bd Fixed bug in ScriptContainer on Windows, where a dispatch failed 2020-04-22 17:24:25 -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
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
a714468636 Added gateway support to MeshAGent.NetInfo and OS.networkInterfaces() for macOS 2020-03-18 16:41:21 -07:00
Bryan Roe
ffcffafeb5 1. modified os.platform() to return process.platform, for consistency
2. updated os.name() on Windows to try to fetch name and id from registry
2020-02-24 10:11:42 -08:00
Bryan Roe
4d7aa678bd Fixed build for No_OpenSSL build mode 2020-02-14 09:14:17 -08:00
Bryan Roe
5476ad8b5f 1. added 'slaveKvmLog' flag to msh, to enable Linux Child KVM logging
2. added support for child process core dumps in Linux (Note: core location must be writable by the process)
2019-10-25 13:42:07 -07:00
Bryan Roe
8eb3bd76e4 1. updated process.kill() to support optional signals
2. added 'SIGCHLD'
2019-10-18 17:37:48 -07:00
Bryan Roe
b2f3e28c33 1. Fixed windows null dereference crash
2. Updated Linux KVM support check, to check if X is apawned, which fixes cases where X libraries are present, but X isn't running.
2019-09-19 15:15:29 -07:00
Bryan Roe
17839ec388 Added missing ifndef to prevent modifying rlimit on windows 2019-09-11 10:29:46 -07:00
Bryan Roe
da6cf39dd2 Added 'index' to networkInterfaces() on windows
Added missing #define
Added IPAddress helper
2019-09-08 19:30:31 -07:00
Bryan Roe
303bde7654 Updated, so on non-windows platforms, when coreDumpLocation is set or reset, the process.rlimit is adjusted to enable/disable generating a core file. 2019-08-27 15:12:49 -07:00
Bryan Roe
31ccab899a Added ability to get/set rlimits on non windows platforms 2019-08-27 14:05:08 -07:00
Bryan Roe
356cadb599 Added setting for coreDumpLocation 2019-08-26 16:57:52 -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
3ef2c541f4 1. Updated failover for os.name() on linux to check DISTRIB_DESCRIPTION
2. Fixed substring bug, that chopped off the last character of os.name()
2019-08-23 00:02:00 -07:00
Bryan Roe
51018a2192 updated os.name() for linux, to return first result if PRETTY_NAME is not found 2019-08-22 21:21:42 -07:00
Bryan Roe
424720211d Updated NetInfo, so desc is omitted if it's blank (MacOS/FreeBSD). Updated os.networkInterfaces() for FreeBSD 2019-06-25 23:39:35 -07:00
Bryan Roe
fc8fba9f62 Fixed bug with os.hostname() 2019-06-24 16:45:30 -07:00
Bryan Roe
f8eca4008a Fixed line ending 2019-06-18 11:39:45 -07:00
Bryan Roe
318b58ad3c Fixed typo 2019-06-18 10:43:41 -07:00
Bryan Roe
00d0066b2a Added os.nics() helper for freebsd 2019-06-17 18:19:52 -07:00
Bryan Roe
c51dcb4e8d update os.name() for freebsd 2019-06-17 16:46:22 -07:00
Bryan Roe
124c0d386f Initial modifications to support FreeBSD 2019-06-17 15:45:46 -07:00
Bryan Roe
68fd05d4c8 Fixed linux compiler warning 2019-06-13 10:49:29 -07:00
Bryan Roe
1fc476d31e 1. Added process.pid on windows
2. Added user-sessions.consoleUid() on windows
3. updated message-box to dispatch to consoleUid when necessary on Windows
2019-05-17 14:23:51 -07:00
Bryan Roe
7cf000571d 1. Fixed compiler warning
2. Updated so process.exit() throws exception when called in agent mode
2019-05-14 14:52:39 -07:00
Bryan Roe
2015b668f2 Added commitHash to process.versions.meshAgent 2019-05-09 14:58:42 -07:00
Bryan Roe
7b98af6a60 Added process.versions 2019-05-08 18:30:13 -07:00
Bryan Roe
429b645a54 1. Added ability to modify environment variables on ScriptContainers
2. Fixed bug, where child ScriptContainer would exit if return value had a JSON parse error
2019-03-12 22:23:30 -07:00
Bryan Roe
268b0dd26f 1. Fixed compiler warning
2. Fixed bug where process.arch wasn't defined
3. Integrated PE_Parser on windows
2019-03-04 18:24:07 -08:00
Bryan Roe
cefd3018d9 1. Added more cleanup for signal handlers
2. Updated, so signal is only registered if there are listeners on the event
2019-02-20 18:22:15 -08:00
Bryan Roe
32f8179137 Added cleanup for signal descriptor 2019-02-20 16:02:37 -08:00
Bryan Roe
f6762fd724 1. Added SIGTERM even for linux/macos
2. Hooked up 'serviceStop' event for linux/macos
2019-02-20 15:55:06 -08:00
Bryan Roe
05400ea3aa Fixed compiler warning 2019-02-11 14:43:24 -08:00
Bryan Roe
2d8c213b9d Rebuilt http-digest in pure JS to fix some issues 2019-02-11 14:07:48 -08:00
Bryan Roe
e9f8626be8 Added missing Canary checks, and altered engine_free to wipe memory 2019-02-01 13:02:14 -08:00
Bryan Roe
e3f1d7121c Added process.cwd() 2019-02-01 01:12:32 -08:00