[ ssic-linux-Bugs-1659803 ] /usr/bin/loadlevel handles corrupt /.loadlevel_status badly
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.linux.cluster.ssic.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1659803, was opened at 2007-02-14 15:57
Message generated for change (Settings changed) made by hughesj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=1659803&group_id=32541
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Load Leveling
Group: None
Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: John Hughes (hughesj)
Assigned to: Nobody/Anonymous (nobody)
Summary: /usr/bin/loadlevel handles corrupt /.loadlevel_status badly
Initial Comment:
During testing I managed to screw up /.loadlevel_status, putting /usr/bin/loadlevel in a near infinite loop on boot.
Problem is this code in do_update_status_file:
while (fscanf(fp, "%d %s\n", &num, on) != EOF) {
if (num == node) {
found = 1;
fprintf(fp2,"%u %s\n",node,buf);
continue;
}
fprintf(fp2,"%d %s\n",num,on);
}
Should be
while (fscanf(fp, "%d %s\n", &num, on) == 2) {
[...]
----------------------------------------------------------------------
Comment By: John Hughes (hughesj)
Date: 2007-02-16 10:36
Message:
Logged In: YES
user_id=166336
Originator: YES
Fixed
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=1659803&group_id=32541
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/