mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Removed 'wait' parameter from spawn_program
This commit is contained in:
parent
df1dfbfc41
commit
d48f8e4c24
@ -247,7 +247,7 @@ int EvokeService::handle(const XEvent* ev) {
|
|||||||
|
|
||||||
if(get_string_property_value(_ede_spawn, buff, sizeof(buff))) {
|
if(get_string_property_value(_ede_spawn, buff, sizeof(buff))) {
|
||||||
logfile->printf("Got _EVOKE_SPAWN with %s. Starting client...\n", 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)
|
if(r != 0)
|
||||||
fl_alert("Unable to start %s. Got code %i", buff, r);
|
fl_alert("Unable to start %s. Got code %i", buff, r);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
extern char** environ;
|
extern char** environ;
|
||||||
|
|
||||||
int run_fork(const char* cmd, bool wait) {
|
int spawn_program(const char* cmd) {
|
||||||
if(!cmd)
|
if(!cmd)
|
||||||
return SPAWN_EMPTY;
|
return SPAWN_EMPTY;
|
||||||
|
|
||||||
@ -62,8 +62,3 @@ int run_fork(const char* cmd, bool wait) {
|
|||||||
|
|
||||||
return status_ret;
|
return status_ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int spawn_program(const char* cmd, bool wait) {
|
|
||||||
return run_fork(cmd, wait);
|
|
||||||
}
|
|
||||||
|
@ -28,6 +28,6 @@
|
|||||||
#define SPAWN_PTY_FAILED 65529 // TODO
|
#define SPAWN_PTY_FAILED 65529 // TODO
|
||||||
#define SPAWN_USER_CANCELED 65528 // TODO
|
#define SPAWN_USER_CANCELED 65528 // TODO
|
||||||
|
|
||||||
int spawn_program(const char* cmd, bool wait);
|
int spawn_program(const char* cmd);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -216,7 +216,7 @@ bool Splash::next_client(void) {
|
|||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
if(!dry_run)
|
if(!dry_run)
|
||||||
spawn_program(cmd, false);
|
spawn_program(cmd);
|
||||||
|
|
||||||
++clist_it;
|
++clist_it;
|
||||||
++counter;
|
++counter;
|
||||||
@ -243,7 +243,7 @@ bool Splash::next_client(void) {
|
|||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
if(!dry_run)
|
if(!dry_run)
|
||||||
spawn_program(cmd, false);
|
spawn_program(cmd);
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
#endif
|
#endif
|
||||||
@ -272,7 +272,7 @@ bool Splash::next_client_nosplash(void) {
|
|||||||
printf("%s\n", buff);
|
printf("%s\n", buff);
|
||||||
|
|
||||||
if(!dry_run)
|
if(!dry_run)
|
||||||
spawn_program(cmd, false);
|
spawn_program(cmd);
|
||||||
|
|
||||||
++clist_it;
|
++clist_it;
|
||||||
++counter;
|
++counter;
|
||||||
@ -298,7 +298,7 @@ bool Splash::next_client_nosplash(void) {
|
|||||||
printf("%s\n", buff);
|
printf("%s\n", buff);
|
||||||
|
|
||||||
if(!dry_run)
|
if(!dry_run)
|
||||||
spawn_program(cmd, false);
|
spawn_program(cmd);
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user