Removed 'wait' parameter from spawn_program

This commit is contained in:
Sanel Zukan 2007-07-30 13:30:41 +00:00
parent df1dfbfc41
commit d48f8e4c24
4 changed files with 7 additions and 12 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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

View File

@ -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