mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iopupgrade: Prevent print to stdout in reboot subshell.
the trap for sigpipe is not active for any subshell so manually prevent it from printing to non existing stdout.
This commit is contained in:
parent
dafde17b4f
commit
7c8634e948
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ upd_finnish
|
|||
|
||||
# spawn the reboot to a subshell to allow the main program to quit before reset to avoid any hanged network connection like ssh
|
||||
(
|
||||
log_stdout=0 # stdin,stdout,stderr do not exist anymore, we are in a subshell and then the trap is no longer working.
|
||||
|
||||
sleep 1
|
||||
log "Rebooting NOW!!!"
|
||||
log ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue