From d48f8e4c24e9900bfca061f14a48e23c34c08650 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Mon, 30 Jul 2007 13:30:41 +0000 Subject: [PATCH] Removed 'wait' parameter from spawn_program --- evoke/EvokeService.cpp | 2 +- evoke/Spawn.cpp | 7 +------ evoke/Spawn.h | 2 +- evoke/Splash.cpp | 8 ++++---- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/evoke/EvokeService.cpp b/evoke/EvokeService.cpp index bbeb37f..45a38b8 100644 --- a/evoke/EvokeService.cpp +++ b/evoke/EvokeService.cpp @@ -247,7 +247,7 @@ int EvokeService::handle(const XEvent* ev) { if(get_string_property_value(_ede_spawn, buff, sizeof(buff))) { logfile->printf("Got _EVOKE_SPAWN with %s. Starting client...\n", buff); - int r = spawn_program(buff, false); + int r = spawn_program(buff); if(r != 0) fl_alert("Unable to start %s. Got code %i", buff, r); diff --git a/evoke/Spawn.cpp b/evoke/Spawn.cpp index bf5437b..e7ba246 100644 --- a/evoke/Spawn.cpp +++ b/evoke/Spawn.cpp @@ -21,7 +21,7 @@ extern char** environ; -int run_fork(const char* cmd, bool wait) { +int spawn_program(const char* cmd) { if(!cmd) return SPAWN_EMPTY; @@ -62,8 +62,3 @@ int run_fork(const char* cmd, bool wait) { return status_ret; } - - -int spawn_program(const char* cmd, bool wait) { - return run_fork(cmd, wait); -} diff --git a/evoke/Spawn.h b/evoke/Spawn.h index 679bc12..93fb6d5 100644 --- a/evoke/Spawn.h +++ b/evoke/Spawn.h @@ -28,6 +28,6 @@ #define SPAWN_PTY_FAILED 65529 // TODO #define SPAWN_USER_CANCELED 65528 // TODO -int spawn_program(const char* cmd, bool wait); +int spawn_program(const char* cmd); #endif diff --git a/evoke/Splash.cpp b/evoke/Splash.cpp index e4001b4..838305a 100644 --- a/evoke/Splash.cpp +++ b/evoke/Splash.cpp @@ -216,7 +216,7 @@ bool Splash::next_client(void) { redraw(); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); ++clist_it; ++counter; @@ -243,7 +243,7 @@ bool Splash::next_client(void) { redraw(); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); counter++; #endif @@ -272,7 +272,7 @@ bool Splash::next_client_nosplash(void) { printf("%s\n", buff); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); ++clist_it; ++counter; @@ -298,7 +298,7 @@ bool Splash::next_client_nosplash(void) { printf("%s\n", buff); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); counter++; #endif