Deprecations * crypto: move pbkdf2 without digest to EOL * fs: deprecate closing FileHandle on garbage collection * http: move OutboundMessage.prototype.flush to EOL * lib: move GLOBAL and root aliases to EOL * os: move tmpDir() to EOL * src: remove deprecated wasm type check * stream: move _writableState.buffer to EOL * doc: deprecate process.mainModule * doc: deprecate process.umask() with no arguments For a detailed list of changes, see https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.0.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs14?expand=0&rev=1
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 $!
|
|
}
|
|
|