[yast-commit] r56996 - /trunk/core/base/tools/tty_wrapper/tty_wrapper.cc
Author: mvidner Date: Mon Apr 27 15:44:48 2009 New Revision: 56996 URL: http://svn.opensuse.org/viewcvs/yast?rev=56996&view=rev Log: oops, properly resume partial write Modified: trunk/core/base/tools/tty_wrapper/tty_wrapper.cc Modified: trunk/core/base/tools/tty_wrapper/tty_wrapper.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/base/tools/tty_wrapper/tty_wrapper.cc?rev=56996&r1=56995&r2=56996&view=diff ============================================================================== --- trunk/core/base/tools/tty_wrapper/tty_wrapper.cc (original) +++ trunk/core/base/tools/tty_wrapper/tty_wrapper.cc Mon Apr 27 15:44:48 2009 @@ -77,8 +77,8 @@ void output(const std::string & s, int fd) { const char *cs = s.c_str(); + ssize_t n = s.size(); while (true) { - ssize_t n = s.size(); ssize_t w = write(fd, cs, n); if (w == n) break; // success -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn.opensuse.org