Use setitimer(2) instead of obsoleted alarm(3)
Submitted by: Ján Sučan <sucanjan@gmail.com>
Differential D22103
ping: Use setitimer(2) instead of obsoleted alarm(3) jansucan on Oct 22 2019, 7:24 AM. Authored by Tags None Referenced Files
Subscribers
Details
Use setitimer(2) instead of obsoleted alarm(3) Submitted by: Ján Sučan <sucanjan@gmail.com>
Diff Detail
Event TimelineComment Actions What about ping6.c? It has a similar invocation of alarm.
Comment Actions Use setitimer(2) instead of obsoleted alarm(3) Submitted by: Ján Sučan <sucanjan@gmail.com> Comment Actions I did the same for ping6. I was not sure whether to do that in this diff or in a separate one.
Comment Actions LGTM. The extra braces you added in order to create scope for the itv variable are stylistically contentious. Some people would disagree with that, because it's not commonly done. But I happen to like that technique myself; no reason for itv to have more scope than necessary. |