Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pmorici
on Nov 28, 2014
|
parent
|
context
|
favorite
| on:
How Not to Write a Signal Handler
Is there a reason they are using sleep(1) instead of pause()? Seems like a waste to use sleep if all you are doing is waiting for a signal.
spoiler
on Nov 28, 2014
[–]
Well, you can's make a funky comment about `pause` being essential, and `sleep`
is
essential.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: