forked from pool/nodejs20
* buffer: improve base64 and base64url performance * crypto: deprecate implicitly shortened GCM tags * events,doc: mark CustomEvent as stable * fs: add stacktrace to fs/promises * report: add --report-exclude-network option * src: add uv_get_available_memory to report and process * stream: support typed arrays * util: support array of formats in util.styleText * v8: implement v8.queryObjects() for memory leak regression testing * watch: mark as stable - versioned.patch: refreshed - cares_sle12_capabilities.patch: SLES12 compatibility OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs20?expand=0&rev=80
17 lines
306 B
Bash
17 lines
306 B
Bash
#
|
|
# Node can break stdin/stdout/stderr by setting them O_NONBLOCK
|
|
# and then not resetting it back to blocking mode on exit
|
|
# This function redirects stdio descriptors via new logging pipe
|
|
#
|
|
|
|
|
|
function decoupled_cmd
|
|
{
|
|
mkfifo _log
|
|
($@) < /dev/null > _log 2>_log &
|
|
cat _log
|
|
rm _log
|
|
wait $!
|
|
}
|
|
|