Patch Name: PHCO_28247 Patch Description: s700_800 11.11 script(1) cumulative patch Creation Date: 03/04/23 Post Date: 03/05/05 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: Yes PHCO_28247: HANG Category Tags: defect_repair general_release critical halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHCO_28247 Symptoms: PHCO_28247: ( SR:8606284424 CR:JAGae48370 ) Duplicate ( SR:8606288333 CR:JAGae52264 ) script(1) hangs when interrupted immediately upon execution. PHCO_26025: ( SR:8606197905 CR:JAGad67096 ) When a large chunk of data is pasted in a script session, script is giving an error "pty write error". Also, there is data loss in its log file. Defect Description: PHCO_28247: ( SR:8606284424 CR:JAGae48370 ) Duplicate ( SR:8606288333 CR:JAGae52264 ) script(1) hangs, when SIGINT or SIGQUIT is sent immediately, after it is invoked at command prompt. Steps to reproduce the problem are as follows: 1. invoke script $ script 2. send SIGINT (^C) immediately. The time gap between step 1 and step 2 is very small. So, this is very difficult to reproduce. Resolution: The signal handling for interrupt is corrected. The signals are queued up before script(1) execs a shell. PHCO_26025: ( SR:8606197905 CR:JAGad67096 ) When a large chunk of data is pasted in a script session, script is giving an error "pty write error". This was because, script(1) was trying to write data to file descriptors, which are not ready for write. Also there is some data loss, because there is no input flow control. Steps to reproduce the problem are as follows: 1. On a fresh terminal, start script. 2. cat > cat.out 2>cat.err 3. Paste a buffer of atleast 110x50 characters repeatedly. 4. script gives out an error "script: pty write failed: Invalid argument" 5. Exit from script by ^D^D and check whether the data present in cat.out is same as the one pasted. Resolution: Now, script(1) is made to use select(2) to check whether the file descriptors are ready for write or not, and then write the data. Also, an environmental variable SCRIPT_USE_IXOFF has been added, by setting this environmental variable before running the script, the input flow control can be enabled. Enhancement: No SR: 8606197905 8606284424 8606288333 Patch Files: OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/bin/script what(1) Output: OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/bin/script: script.c $Date: 2002/11/27 04:38:01 $Revision: r11.1 1/3 PATCH_11.11 (PHCO_28247) $Revision: @(#) all CUP11.11_BL2003_0423_1 PATCH_11. 11 PHCO_28247 Wed Apr 23 06:48:55 PDT 2003 $ cksum(1) Output: OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: 194233623 20480 /usr/bin/script Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_26025 Equivalent Patches: PHCO_28246: s700: 11.00 s800: 11.00 Patch Package Size: 40 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_28247 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_28247.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_28247. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_28247.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_28247.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_28247.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None