Google
 

Trailing-Edge - PDP-10 Archives - bb-d868a-bm - 3-documentation/sysjob.tco
There are 21 other files named sysjob.tco in the archive. Click here to see a list.
TOPS20 Change Order Number 1707

Written by: HALL		 7-Jan-77 12:40:21

Edit checked: YES			   Document: NO
  TCO Tested: YES		Maintenance Release: NO

Program: SYSJOB

Release: 3

Related TCO's:
Related SPR'S: 


Problem: IF YOU GIVE SYSJOB A 'JOB' COMMAND AND
FAIL TO TERMINATE IT CORRECTLY, WEIRD THINGS HAPPEN

Diagnosis: THE BUFFER INTO WHICH THE TEXT IS COPIED IS NOT CLEARED BEFORE
THE COPY. WHEN GCIN DETECTS END OF FILE, IT ASSUMES THAT THE COMMAND
IS COMPLETE. IN FACT, IT HAS NOT BEEN TERMINATED WITH A NULL. THIS
CAUSES THE NEW STRING TO OVERLAID ON THE OLD ONE, AND PART OF THE
OLD ONE GETS RE-EXECUTED.

Solution: THE CORRECT SOLUTION WOULD BE TO HANDLE END OF FILE CORRECTLY.
HOWEVER, THIS MEANS WORKING ON ALL THE COMMANDS. THE QUICK AND DIRTY
SOLUTION (TAKEN FOR NOW) IS TO ZERO THE BUFFER BEFORE STORING INTO IT.