mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
exec_on_master_terminal(): move code to caller instead.
This commit is contained in:
parent
df138c775a
commit
16e2724c12
@ -208,11 +208,6 @@ exec_on_master_terminal(struct terminal *term,
|
||||
unsigned char *param;
|
||||
int param_size;
|
||||
|
||||
if (is_blocked() && fg) {
|
||||
unlink(delete);
|
||||
return;
|
||||
}
|
||||
|
||||
param_size = plen + dlen + 2 /* 2 null char */ + 1 /* fg */;
|
||||
param = fmem_alloc(param_size);
|
||||
if (!param) return;
|
||||
@ -287,6 +282,11 @@ exec_on_terminal(struct terminal *term, unsigned char *path,
|
||||
return;
|
||||
}
|
||||
|
||||
if (fg && is_blocked()) {
|
||||
unlink(delete);
|
||||
return;
|
||||
}
|
||||
|
||||
exec_on_master_terminal(term,
|
||||
path, strlen(path),
|
||||
delete, strlen(delete),
|
||||
|
Loading…
Reference in New Issue
Block a user