[fpc-pascal]Problem with daemon.pp

Ken J. Wright kenw at cncware.com
Sun Sep 10 20:50:54 CEST 2000


> sa_handler is correct. Unfortunately 1.00 had an error in the linux unit. You
> will need to download a snapshot to fix this problem.

>   Case pid of
>        0 : Begin { we are in the child }
>           Close(input);  { close standard in }
>           Close(output); { close standard out }
>           Assign(output,'/dev/null');
>           ReWrite(output);  <--------- HERE
>           Close(stderr); { close standard error }
>           Assign(stderr,'/dev/null');
>           ReWrite(stderr);  <----------AND HERE

I was a bit mistaken in my first reply. Here's the original bug report.

***************************************************************************
>>On Thu, 13 Jul 2000, Mike Ravkin wrote:

>> It seems that with v1.0, when you attempt to reset() or rewrite() a text file
>> that's pointed to /dev/null, you get a RTE#2 (File not Found?) 
>> The src/fpc-1.0/demos/linux/daemon.pp code doesn't work because of this.

> Someone applied a WRONG patch to the system unit. First bugs of 1.0 :(

> Michael.
*********************************************************************************

Ken




More information about the fpc-pascal mailing list