* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "config.h"
+
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#include <sys/ioctl.h>
#include "log/log.h"
#include "pb-protocol/pb-protocol.h"
#include "talloc/talloc.h"
#include "waiter/waiter.h"
+#include "process/process.h"
#include "ui/common/discover-client.h"
#include "nc-cui.h"
cui->platform_info = platform_info;
cui->waitset = waitset_create(cui);
+ process_init(cui, cui->waitset);
+
+ setlocale(LC_ALL, "");
+
/* Loop here for scripts that just started the server. */
retry_start:
while (1) {
int result = waiter_poll(cui->waitset);
- if (result < 0 && errno != EINTR) {
+ if (result < 0) {
pb_log("%s: poll: %s\n", __func__, strerror(errno));
break;
}