Commit 974909a1 authored by Denis Zalevskiy's avatar Denis Zalevskiy

small improvements in misc places

Signed-off-by: Denis Zalevskiy's avatarDenis Zalevskiy <denis.zalevskiy@jolla.com>
parent 29916365
/**
* @file property.cpp
* @file qml/property.cpp
* @brief Statefs property binding
* @copyright (C) 2012-2014 Jolla Ltd.
* @par License: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
......
#ifndef _STATEFS_QML_PROPERTY_HPP_
#define _STATEFS_QML_PROPERTY_HPP_
/**
* @file property.cpp
* @file qml/property.hpp
* @brief Statefs property binding
* @copyright (C) 2012-2014 Jolla Ltd.
* @par License: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
......
......@@ -23,7 +23,9 @@ static int sigFd[2];
void onExit(int)
{
char a = 1;
::write(sigFd[0], &a, sizeof(a));
if (::write(sigFd[0], &a, sizeof(a)) < 0) {
// ignore
}
}
int usage(QStringList const &args, int rc)
......@@ -51,7 +53,7 @@ void monitorProps(QStringList keys)
for (auto name : keys) {
auto p = new DiscreteProperty(name, app);
app->connect(p, &DiscreteProperty::changed, [name](QVariant v) {
debug::info(name, "=", v);
debug::print(name, "=", v);
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment