141 |
|
struct tms tbuf; |
142 |
|
struct utsname nambuf; |
143 |
|
double period; |
144 |
< |
#define hostname nambuf.sysname |
144 |
> |
#define hostname nambuf.nodename |
145 |
|
#endif |
146 |
|
|
147 |
|
tlastrept = time((time_t *)NULL); |
166 |
|
nrays, pctdone, u/3600., s/3600., |
167 |
|
(tlastrept-tstart)/3600., hostname); |
168 |
|
eputs(errmsg); |
169 |
+ |
#ifndef BSD |
170 |
+ |
signal(SIGCONT, report); |
171 |
|
#undef hostname |
172 |
+ |
#endif |
173 |
|
} |
174 |
|
#else |
175 |
|
report() /* report progress */ |
178 |
|
sprintf(errmsg, "%lu rays, %4.2f%% after %5.4f hours\n", |
179 |
|
nrays, pctdone, (tlastrept-tstart)/3600.0); |
180 |
|
eputs(errmsg); |
178 |
– |
signal(SIGCONT, report); |
181 |
|
} |
182 |
|
#endif |
183 |
|
|