bash - Why does tee wait for all subshells to finish? -


i have server script runs mysqld , forks continue running. example:

./mysqld <parameters> & echo "parent runs next line in script." <do more stuff> 

why tee wait child process end before ends itself?

edit:

for example, following hangs:

./myscript | tee -a logfile.log 

because can't sure has tee'd output if child process still running.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -