DragonFly commits List (threaded) for 2008-07
DragonFly BSD
DragonFly commits List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sbin/hammer cmd_mirror.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 5 Jul 2008 14:40:23 -0700 (PDT)

    It could go both ways.  There might be buffered data from the forked
    program that ought to be flushed, or buffered data from the original
    that ought not to be flushed.  I guess I should fflush() stdout and
    stderr before calling _exit().

    Its kinda a weird situation.  I only exec*() if I actually have to run
    ssh, and clearly one would want to _exit() after a failed exec*().  It
    is less clear what should be done when I decide not to exec*().

					-Matt




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]