Also, wet_process.cleanup now takes extra data argument.
Bug-AGL: SPEC-5061
Change-Id: I2e7e6d976663a41d0a53866d6bde4df0531f1790
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
static struct wl_client *
client_launch(struct weston_compositor *compositor,
static struct wl_client *
client_launch(struct weston_compositor *compositor,
- struct weston_process *proc,
+ struct wet_process *proc,
- weston_process_cleanup_func_t cleanup)
+ wet_process_cleanup_func_t cleanup)
{
struct wl_client *client = NULL;
struct custom_env child_env;
{
struct wl_client *client = NULL;
struct custom_env child_env;
- struct weston_process proc;
+ struct wet_process proc;
char *path;
};
int
sigchld_handler(int signal_number, void *data)
{
char *path;
};
int
sigchld_handler(int signal_number, void *data)
{
- struct weston_process *p;
struct ivi_compositor *ivi = data;
int status;
pid_t pid;
struct ivi_compositor *ivi = data;
int status;
pid_t pid;
wl_list_remove(&p->link);
wl_list_init(&p->link);
wl_list_remove(&p->link);
wl_list_init(&p->link);
+ p->cleanup(p, status, NULL);
}
if (pid < 0 && errno != ECHILD)
}
if (pid < 0 && errno != ECHILD)
-process_handle_sigchld(struct weston_process *process, int status)
+process_handle_sigchld(struct wet_process *process, int status, void *data)
{
struct process_info *pinfo =
container_of(process, struct process_info, proc);
{
struct process_info *pinfo =
container_of(process, struct process_info, proc);