1
0
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:
Laurent MONIN 2006-01-07 01:54:44 +01:00 committed by Laurent MONIN
parent df138c775a
commit 16e2724c12

View File

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