fix pbs_sched error opening lockfile and immediately exiting
This commit is contained in:
parent
407f996455
commit
a5ec5c81db
12
torque-2.1.0p0-sched-offbyone.patch
Normal file
12
torque-2.1.0p0-sched-offbyone.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- torque-2.1.0p0-snap.200604171430/src/scheduler.cc/pbs_sched.c.orig 2006-04-06 23:56:37.000000000 +0200
|
||||||
|
+++ torque-2.1.0p0-snap.200604171430/src/scheduler.cc/pbs_sched.c 2006-04-20 16:52:38.000000000 +0200
|
||||||
|
@@ -992,7 +992,7 @@
|
||||||
|
|
||||||
|
(void)sprintf(log_buffer, "%ld\n", (long)pid);
|
||||||
|
|
||||||
|
- if (write(lockfds, log_buffer, strlen(log_buffer)+1) != strlen(log_buffer))
|
||||||
|
+ if (write(lockfds, log_buffer, strlen(log_buffer)+1) != strlen(log_buffer)+1)
|
||||||
|
{
|
||||||
|
perror("writing to lockfile");
|
||||||
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
%define name torque
|
%define name torque
|
||||||
%define version 2.1.0p0
|
%define version 2.1.0p0
|
||||||
%define snap 200604171430
|
%define snap 200604171430
|
||||||
%define release 7
|
%define release 8
|
||||||
|
|
||||||
# The following options are supported:
|
# The following options are supported:
|
||||||
# --with server_name=hostname
|
# --with server_name=hostname
|
||||||
@ -91,6 +91,7 @@ Source3: xpbsmon.desktop
|
|||||||
Source4: xpbs.png
|
Source4: xpbs.png
|
||||||
Source5: xpbsmon.png
|
Source5: xpbsmon.png
|
||||||
Patch1: torque-2.1.0-remove-rpath.path
|
Patch1: torque-2.1.0-remove-rpath.path
|
||||||
|
Patch2: torque-2.1.0p0-sched-offbyone.patch
|
||||||
License: Freely redistributable (See PBS_License.txt)
|
License: Freely redistributable (See PBS_License.txt)
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.clusterresources.com/products/torque/
|
URL: http://www.clusterresources.com/products/torque/
|
||||||
@ -119,6 +120,7 @@ This package holds just a few shared files and directories.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n torque-%{version}%{?snap:-snap.%snap}
|
%setup -q -n torque-%{version}%{?snap:-snap.%snap}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%__cp -p %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
|
%__cp -p %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
|
||||||
|
|
||||||
@ -423,6 +425,9 @@ necessary for developing programs which will use %{name}.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 20 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.8.200604171430cvs
|
||||||
|
- fix pbs_sched error opening lockfile and immediately exiting
|
||||||
|
|
||||||
* Mon Apr 17 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.7.200604171430cvs
|
* Mon Apr 17 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.7.200604171430cvs
|
||||||
- importing to fedora extras
|
- importing to fedora extras
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user