----------------------------------------------------------------------------------
@MSGID: 1@dont-email.me> e6e6b67f
@REPLY: <ygamsxoixhx.fsf@akutech.de> c618bd88
@REPLYADDR candycanearter07 <no@thanks.net>
@REPLYTO 2:5075/128 candycanearter07
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References: 1@dont-email.me>
<ygamsxoixhx.fsf@akutech.de>
@TZUTC: -0500
@PID: Mozilla Thunderbird
@TID: FIDOGATE-5.12-ge4e8b94
On 9/14/23 10:29, Ralf Fassel wrote:
> * The Natural Philosopher <
tnp@invalid.invalid>
> | One possibility is that it is opening and reading a file at the
> | precise time another process is writing it...in both cases the read
> | and write
> | operations are atomic and done with C code.
>>
> | READ
> | ====
> | fp=fopen(fullname, "r");
> | len=fread(filbuf,1,255,fp); // read entire file
>
> Check for fp != NULL is missing here in this example code before
> fread(). If this also in the production version, it might be a problem
> if the file is not accessible for any reason.
>
> R`
I don`t think it was a SIGSEGV error, but you should be doing this
regardless.
--
--
user
is generated from /dev/urandom
--- Mozilla Thunderbird
* Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441