]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmonctl: stdout, not stderr
authorSage Weil <sage@newdream.net>
Tue, 20 May 2008 05:50:49 +0000 (22:50 -0700)
committerSage Weil <sage@newdream.net>
Tue, 20 May 2008 05:50:49 +0000 (22:50 -0700)
src/cmonctl.cc

index b3af5b9cb959bce6b88f7196e571fdb2926ec991..32663f6d581b84120aa149496b99f6a11d4e6c94 100644 (file)
@@ -49,7 +49,7 @@ void handle_ack(MMonCommandAck *ack)
   if (len) {
     if (outfile) {
       if (strcmp(outfile, "-") == 0) {
-       ::write(0, ack->get_data().c_str(), len);
+       ::write(1, ack->get_data().c_str(), len);
       } else {
        int fd = ::open(outfile, O_WRONLY|O_TRUNC|O_CREAT);
        ::write(fd, ack->get_data().c_str(), len);