izard: (Default)
[personal profile] izard
#!/bin/bash
if crashes.x >/dev/null 2>&1 | exit $? ;
then
 echo Not crashed
else
 echo Crashed
fi

if crashes.x SIGSEGVs, the script above sometimes prints "Not crashed", and sometimes "Crashed". (I need a pipe hack because simply redirecting to null does not prevent error message on a console).

Strange, where this non-determinism could come from?

Profile

izard: (Default)
izard

July 2025

S M T W T F S
  12345
67 8 91011 12
13141516171819
20212223242526
27 28293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 1st, 2025 11:32 am
Powered by Dreamwidth Studios