Bug 189590 - [PATCH] buggy check of a write() return value in qsub
Summary: [PATCH] buggy check of a write() return value in qsub
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: torque
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Garrick Staples
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-21 13:22 UTC by Fabrice Bellet
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version: 2.1.0p0-0.10.200604211036cvs
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-21 17:18:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fabrice Bellet 2006-04-21 13:22:07 UTC
Hi,

this patch makes qsub happy :

--- torque-2.1.0p0-snap.200604171430/src/cmds/qsub.c.orig       2006-04-06
23:56:32.000000000 +0200
+++ torque-2.1.0p0-snap.200604171430/src/cmds/qsub.c    2006-04-21
14:28:47.000000000 +0200
@@ -1669,7 +1669,7 @@
     wsz.ws_xpixel,
     wsz.ws_ypixel);

-  if (write(sock,buf,PBS_TERM_BUF_SZ) != sock,buf,PBS_TERM_BUF_SZ)
+  if (write(sock,buf,PBS_TERM_BUF_SZ) != PBS_TERM_BUF_SZ)
     {
     perror("sending winsize");


Note You need to log in before you can comment on or make changes to this bug.