summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-08-12 16:39:36 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-08-19 13:27:59 +0800
commit823958fbbd17ab2c1b2a1779eb10351ca0a668c6 (patch)
tree1c881555dd8da621dcf28dd64dfe4c85b189f5e1 /ui
parentd20e98b93afaf25faca4db2a3583c191bdabe439 (diff)
downloadpetitboot-823958fbbd17ab2c1b2a1779eb10351ca0a668c6.zip
petitboot-823958fbbd17ab2c1b2a1779eb10351ca0a668c6.tar.gz
lib/process: replace pb_run_cmd_pipe
Replace pb_run_cmd_pipe with process_create / process_run_sync. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/ncurses/nc-cui.c3
-rw-r--r--ui/twin/pbt-client.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index 71fec5e..0dc8d4b 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -31,6 +31,7 @@
#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"
@@ -507,6 +508,8 @@ struct cui *cui_init(void* platform_info,
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. */
diff --git a/ui/twin/pbt-client.c b/ui/twin/pbt-client.c
index 445c865..1de532d 100644
--- a/ui/twin/pbt-client.c
+++ b/ui/twin/pbt-client.c
@@ -30,6 +30,7 @@
#include "log/log.h"
#include "talloc/talloc.h"
#include "waiter/waiter.h"
+#include "process/process.h"
#include "ui/common/discover-client.h"
static struct pb_opt_data *pbt_opt_data_from_item(struct pbt_item *item)
@@ -269,6 +270,8 @@ struct pbt_client *pbt_client_init(enum pbt_twin_backend backend,
pbt_client->waitset = waitset_create(pbt_client);
+ process_init(pbt_client, pbt_client->waitset);
+
pbt_client->sig = "pbt_client";
pbt_client->frame.scr = pbt_scr_init(pbt_client, pbt_client->waitset,
backend, width, height, NULL, NULL);
OpenPOWER on IntegriCloud