On Jun 14, 2013, at 2:49 AM, Gary Willoughby d...@kalekold.net wrote:
In fact i have the same problem reading files too. It only reads files up to
a certain amount of bytes then crashes in the same manner explained above.
Again this only happens when the program runs as a daemon.
Run as a
Run as a daemon how?
By running the above code. All the code before opening the file
causes the program to run as a daemon.
On 2013-06-13 19:42, Gary Willoughby wrote:
I get a program crash each time running the following code on MacOS 10.8
(Lion). It seems to run ok on Ubuntu 12.04:
import core.sys.posix.sys.stat;
import core.sys.posix.unistd;
import std.c.stdio;
import std.c.stdlib;
import std.process;
import
You do know that you usually don't have a /home/ directory on
Mac OS X? On Mac OS X it's called /Users/.
Yeah, that was me running the same code on Ubuntu.
BTW, running that on Mac OS X 10.6.3 does not cause a crash.
Although it doesn't seem to print or write anything.
That's the problem i
In fact i have the same problem reading files too. It only reads
files up to a certain amount of bytes then crashes in the same
manner explained above. Again this only happens when the program
runs as a daemon.