[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash: sleep execution issue with bash loadable builtins
From: |
Thiruvadi Rajaraman |
Subject: |
Bash: sleep execution issue with bash loadable builtins |
Date: |
Mon, 27 Nov 2017 17:47:00 +0530 |
Hi,
Found a 'sleep' execution issue with bash loadable builtins and has
performed
the below sleep test on bash-4.4-rc1.
Bash version: 4.4-rc1
Web link: https://ftp.gnu.org/gnu/bash/bash-4.4-rc1.tar.gz
Reproducible test case and Console logs:
========================================
bash-4.4-rc1#./bash
bash-4.4-rc1# cd examples/loadables/
bash-4.4-rc1/examples/loadables# enable -f ./sleep sleep
bash-4.4-rc1/examples/loadables# date; sleep 1 & date; sleep 4; date
Mon Nov 27 17:00:01 IST 2017
[1] 5355
Mon Nov 27 17:00:01 IST 2017
Mon Nov 27 17:00:02 IST 2017 --------------> Took 1 Sec only instead of
4 Sec's.
[1]+ Done sleep 1
bash-4.4-rc1/examples/loadables#
bash-4.4-rc1/examples/loadables# date; sleep 4 & date; sleep 1; date
Mon Nov 27 17:00:16 IST 2017
[1] 5386
Mon Nov 27 17:00:16 IST 2017
Mon Nov 27 17:00:17 IST 2017
bash-4.4-rc1/examples/loadables#
bash-4.4-rc1/examples/loadables# date; sleep 1 & date; sleep 10; date
Mon Nov 27 17:00:29 IST 2017
[1]+ Done sleep 4
[1] 5390
Mon Nov 27 17:00:29 IST 2017
Mon Nov 27 17:00:30 IST 2017 -------------> Took 1 Sec only instead of
10 Sec's.
[1]+ Done sleep 1
root@cavium-Vostro-3446
:~/Desktop/bugzilla-CGX/77504/bash-4.4-rc1/examples/loadables#
Fix patch:
==========
# Attached the fix patch -
Fix_for_bash_loadable_builtin_sleep_execution_issue.patch
Please kindly review and suggest your comments.
Thanks,
Thiruvadi Rajaraman
Fix_for_bash_loadable_builtin_sleep_execution_issue.patch
Description: Text Data
- Bash: sleep execution issue with bash loadable builtins,
Thiruvadi Rajaraman <=