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

June 2025

S M T W T F S
1234567
891011121314
15161718192021
22 23242526 2728
2930     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 5th, 2025 06:08 pm
Powered by Dreamwidth Studios