Nп/п : 5 из 100
 От   : candycanearter07                    2:5075/128        14 сен 23 11:32:13
 К    : Ralf Fassel                                           14 сен 23 19:33:03
 Тема : Re: Weird code crash
----------------------------------------------------------------------------------
                                                                                 
@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



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх