>>>Character Litien (or any other char who was saved LAST just before
>>>core_dump() is called) will be duplicated and character after him in
>>>pfile will be overwritten. Any ideas how to fix this?
>>fflush(NULL);
>>If that's doesn't work, then there probably isn't much to do.
>Is fflush(NULL) ANSI compliant?
>Maybe flushing all game files currently opened in write or append mode
>can fix this?
I've just read FreeBSD documentation on fork() and fflush().
You're right - fflush(NULL) will prevent duplication (no write buffers will
be copied to child process).
Andrey
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT