« first day (940 days earlier)      last day (180 days later) » 

2:37 PM
@ConorO'Brien I'm rewriting the backend and I have an issue with DScript. Since it prints its output in a subprocess, my new script manages to close the file descriptor before the subprocess has time to print it. Took me a while to figure out why there was no output at all...
On Linux (and Windows too, I think), you can use wait() to avoid exiting before your child process does. That will still hide the generated executable's exit code though.
On Linux, you can use execv(outFileName, [outFileName]); to avoid creating a subprocess.
 
@Dennis I'll look into the matter. would wrapping the program into a bash program help? e.g. (using pseudocode) dscript -c file -o output && rdmd output
 
2:57 PM
@ConorO'Brien Sure, but execv is a much cleaner solution imho. I already changed it locally and it works well.
 
 
4 hours later…
6:46 PM
this looks promising, I'll try implementing that
 

« first day (940 days earlier)      last day (180 days later) »