mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=1306
This commit is contained in:
parent
81e0a65ae2
commit
07b3d2aeaf
|
@ -397,6 +397,7 @@ int read_ppm_file(char* name, int& w, int& h, unsigned char** arrayp) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
f = fopen(name, "rb");
|
f = fopen(name, "rb");
|
||||||
|
if (!f) return -1;
|
||||||
do {fgets(buf, 256, f);} while (buf[0] == '#');
|
do {fgets(buf, 256, f);} while (buf[0] == '#');
|
||||||
if (buf[0] != 'P') {
|
if (buf[0] != 'P') {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -144,7 +144,9 @@ int main(int argc, char** argv) {
|
||||||
signal(SIGHUP, quit_client);
|
signal(SIGHUP, quit_client);
|
||||||
signal(SIGINT, quit_client);
|
signal(SIGINT, quit_client);
|
||||||
signal(SIGQUIT, quit_client);
|
signal(SIGQUIT, quit_client);
|
||||||
|
#ifdef SIGPWR
|
||||||
signal(SIGPWR, quit_client);
|
signal(SIGPWR, quit_client);
|
||||||
|
#endif
|
||||||
signal(SIGTSTP, susp_client);
|
signal(SIGTSTP, susp_client);
|
||||||
signal(SIGCONT, resume_client);
|
signal(SIGCONT, resume_client);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue