Compare commits

..
2 Commits
Author SHA1 Message Date
riley 2bcbc62bf8 Why do I need to merge this?! 2025-03-10 20:59:05 +11:00
riley b4ed4aa4c0 Fixed issue where first process is null 2025-03-10 20:57:05 +11:00
-5
View File
@@ -139,15 +139,10 @@ int lua_platform_exec_parallel(lua_State* L)
{
char buf[64];
// Read the std. streams into the output vectors
// TODO: Errors out here
fprintf(stderr, "p->out = %p\n", p->out);
while (fgets(buf, sizeof(buf), p->out) != NULL)
std_outs[p->userdata].append(buf);
fprintf(stderr, "C: %llu\n", cmd_idx);
fprintf(stderr, "p->err = %p\n", p->err);
while (fgets(buf, sizeof(buf), p->err) != NULL)
std_errs[p->userdata].append(buf);
fprintf(stderr, "D: %llu\n", cmd_idx);
// Add the process return code to retcode array
uniproc_await_processes(p, retcodes + p->userdata, 1);
// Close the process and zero it