Aug. 29th, 2017

izard: (Default)
#!/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

August 2025

S M T W T F S
     12
3456789
10111213 141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 16th, 2025 11:06 pm
Powered by Dreamwidth Studios