Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zomgbbq
on Jan 8, 2015
|
parent
|
context
|
favorite
| on:
Dirty Coding Tricks
We once had a game demo that was crashing every time we tried to exit the game. Inserted an exit(0); in the shutdown code and it never crashed again.
dbrower
on Jan 9, 2015
[–]
+1. That should always work as an exmaple of "crash only" programming. It's nice to get shutdown working for valgrind, but it should never be necessary.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: