git: dsynth - Fix waitpid() bug, revamp phase poll loop

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 21 20:53:40 PDT 2019


commit 7880dcf7e8780236628d63308c90166a1c7189a7
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 21 20:50:21 2019 -0700

    dsynth - Fix waitpid() bug, revamp phase poll loop
    
    * Fix an issue where the wrong wait*() status is processed as
      the error code.  This could occur especially on slow machines.
    
    * Be sure to clean out any log data on the pty while and after
      processing the wait*() on the primary pid as there might be
      some as-yet unprocessed data.
    
    * Use non-blocking mode on the masterpty to ensure that we
      don't accidently block on it.

Summary of changes:
 usr.bin/dsynth/build.c | 145 ++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 114 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7880dcf7e8780236628d63308c90166a1c7189a7


-- 
DragonFly BSD source repository


More information about the Commits mailing list