Added some questionable support for running everything in one process, because iOS.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4520 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
15
src/task.c
15
src/task.c
@ -94,6 +94,7 @@ typedef struct _tf_task_t
|
||||
|
||||
bool _activated;
|
||||
bool _trusted;
|
||||
bool _one_proc;
|
||||
bool _killed;
|
||||
int32_t _exitCode;
|
||||
char _scriptName[256];
|
||||
@ -1620,9 +1621,9 @@ tf_task_t* tf_task_create()
|
||||
return task;
|
||||
}
|
||||
|
||||
void tf_task_configure_from_stdin(tf_task_t* task)
|
||||
void tf_task_configure_from_fd(tf_task_t* task, int fd)
|
||||
{
|
||||
task->_parent = tf_taskstub_create_parent(task, STDIN_FILENO);
|
||||
task->_parent = tf_taskstub_create_parent(task, fd);
|
||||
}
|
||||
|
||||
static void _tf_task_trace_to_parent(tf_trace_t* trace, const char* buffer, size_t size, void* user_data)
|
||||
@ -1754,6 +1755,16 @@ void tf_task_run(tf_task_t* task)
|
||||
} while (_tf_task_run_jobs(task));
|
||||
}
|
||||
|
||||
bool tf_task_get_one_proc(tf_task_t* task)
|
||||
{
|
||||
return task->_one_proc;
|
||||
}
|
||||
|
||||
void tf_task_set_one_proc(tf_task_t* task, bool one_proc)
|
||||
{
|
||||
task->_one_proc = one_proc;
|
||||
}
|
||||
|
||||
void tf_task_set_trusted(tf_task_t* task, bool trusted)
|
||||
{
|
||||
task->_trusted = trusted;
|
||||
|
Reference in New Issue
Block a user