[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI crash



daver@idiom.com (David Ray) writes:
>Although I haven't seen exactly the problem you describe, I have seen
>generally strange behaviour with MacHTTP PCGI's when I try to edit one that
>is running.

Sounds like a bug. 

> If I tweak a CGI and re-run it, I get multiple copies of it in
>the Applications menu, and after the next reboot several "Rescued items" in
>the trash which are PCGI's.

Yes, this is probably caused by MacPerl's saving strategy. It saves the
new CGI into a temp file, exchanges the old and new files, and tries to
delete the old file. Of course, the last step fails when the CGI is still
running.

>I also found that with the new version of MacPerl I can edit a CGI with
>BBEdit by selecting the "Edit with BBedit..." menu, but if I try to save it
>in BBEdit the file gets corrupted. That's because BBEdit can't read or
>write in the PCGI format.

Well, no, that's not a satisfactory explanation. "Edit with BBEdit" copies the
script into a temporary plain text file and is supposed to copy it back.
Something must be going wrong here.

These were two very valuable leads to the CGI troubles; I hope I can fix them
ASAP (BTW, the problem with the OSA component and Frontier is fixed as of 
yesterday).

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
  "The level of chat on those programmes is about as low as it is possible
   to get without actually serving the viewers gin." -- Gore Vidal