mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
cad6c0c117
configurable limits on jobs on a per queue basis as well as for the total queue system. It is based on the de facto NQS standards and is interoperable with commercial NQS products. PR: 6699 Submitted by: Tony Maher <tonym@angis.org.au>
22 lines
689 B
Plaintext
22 lines
689 B
Plaintext
--- Source-Tree/nqsdaemon/all-systems/nqs_reqser.c.orig Wed Sep 11 05:32:26 1996
|
|
+++ Source-Tree/nqsdaemon/all-systems/nqs_reqser.c Sat May 2 11:09:26 1998
|
|
@@ -1746,7 +1746,7 @@
|
|
char *cp;
|
|
|
|
environment_file = fopen("/etc/environment", "r");
|
|
- if ( environment_file != (FILE *) 0 ) {
|
|
+ if ( environment_file > (FILE *) 0 ) {
|
|
while ( (fgets (env_line, sizeof(env_line), environment_file )
|
|
!= (char *) 0) ) {
|
|
if (env_line[0] == '#') continue;
|
|
@@ -1758,8 +1758,8 @@
|
|
return (the_path);
|
|
}
|
|
}
|
|
+ fclose ( environment_file );
|
|
}
|
|
- fclose ( environment_file );
|
|
/*
|
|
* The file was not found, or the path was not in it.
|
|
*/
|