Replace sscanf-based interval parsing with strtod(3) to match
documented behavior and improve error handling. Fix SIGINFO
handling to print remaining sleep time to stdout as specified
by sleep(1).
Signed-off-by: NVSRahul <nvsrahul@hotmail.com>
Differential D54765
sleep: fix SIGINFO output and modernize interval parsing Authored by nvsrahul_hotmail.com on Sun, Jan 18, 12:47 PM. Tags None Referenced Files
Subscribers
Details Replace sscanf-based interval parsing with strtod(3) to match Signed-off-by: NVSRahul <nvsrahul@hotmail.com> Tested interval parsing with integer and fractional values
Diff Detail
Event Timeline
Comment Actions Good catch, thanks. | ||||||||||||||||||||||||||||||||||||||