in the smart mirror application, due to a bug in arecord, we need to stop and restart the lpcm recorder.
when the stop function is called, and the cp.kill() is executed, arecord sends an abort error on the stdout stream.. but node-lpcm is not handling error on that stream.. and the application dies for uncaught exception
you can see this by redirecting arecord to a file, and then issue a kill on arecord.
in the smart mirror application, due to a bug in arecord, we need to stop and restart the lpcm recorder.
when the stop function is called, and the cp.kill() is executed, arecord sends an abort error on the stdout stream.. but node-lpcm is not handling error on that stream.. and the application dies for uncaught exception
you can see this by redirecting arecord to a file, and then issue a kill on arecord.
the fix is to add
to the list of handlers in the start function