You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.
I find out this error, here's the detail
When I want run ps -Af | grep -q -E -c "\\-\\-user-data-dir=\\.+App" by using the execSync API, I got some error. I have found out this root cause, that the checkExecSyncError has checked the child process's exit code is 0 or not. If it is not 0, the checkExecSyncError will raise a new exception.
But here's the problem, in the POSIX specification(aka IEEE Std 1003), the people define the EXIT Code 1 represents all the general errors, so some of the software such as grep's developer use 1 to represent the software logic error( In grep, exit code 1 means that there's anything has been matched. FYI https://linux.die.net/man/1/grep).
In another circumstance, the POSIX(such as GNU/Linux, FreeBSD) allows people to use the custom exit code out of 0-255 to represent the software's own custom login error.
Above this, in my personal opinion, I think the Node.js developer needs a way to handle the child process exit code manually. We can allow people to add some callback to get the origin status code, the stdout content, the stderr content, or something else.
If you people are interested about this feature request, I'm very glad to comment my design proposal.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.
I find out this error, here's the detail
When I want run
ps -Af | grep -q -E -c "\\-\\-user-data-dir=\\.+App"by using theexecSyncAPI, I got some error. I have found out this root cause, that thecheckExecSyncErrorhas checked the child process's exit code is 0 or not. If it is not 0, thecheckExecSyncErrorwill raise a new exception.But here's the problem, in the POSIX specification(aka IEEE Std 1003), the people define the EXIT Code 1 represents all the general errors, so some of the software such as
grep's developer use 1 to represent the software logic error( In grep, exit code 1 means that there's anything has been matched. FYI https://linux.die.net/man/1/grep).In another circumstance, the POSIX(such as GNU/Linux, FreeBSD) allows people to use the custom exit code out of 0-255 to represent the software's own custom login error.
Above this, in my personal opinion, I think the Node.js developer needs a way to handle the child process exit code manually. We can allow people to add some callback to get the origin status code, the stdout content, the stderr content, or something else.
If you people are interested about this feature request, I'm very glad to comment my design proposal.
The text was updated successfully, but these errors were encountered: