| 173 |
|
char *binval = NULL; |
| 174 |
|
char fmt[8]; |
| 175 |
|
int i, j; |
| 176 |
+ |
/* need at least one argument */ |
| 177 |
+ |
if (argc < 2) { |
| 178 |
+ |
fprintf(stderr, |
| 179 |
+ |
"Usage: %s [-n nprocs][-r][-e expr][-f source][-o ospec][-b binv] {-m mod | -M file} [rtrace options] octree\n", |
| 180 |
+ |
argv[0]); |
| 181 |
+ |
exit(1); |
| 182 |
+ |
} |
| 183 |
|
/* global program name */ |
| 184 |
|
gargv = argv; |
| 185 |
|
/* initialize calcomp routines */ |
| 330 |
|
quit(0); |
| 331 |
|
} |
| 332 |
|
|
| 333 |
+ |
#ifndef SIGALRM |
| 334 |
+ |
#define SIGALRM SIGTERM |
| 335 |
+ |
#endif |
| 336 |
|
/* kill persistent rtrace process */ |
| 337 |
|
static void |
| 338 |
|
killpersist(void) |
| 339 |
|
{ |
| 340 |
|
FILE *fp = fopen(persistfn, "r"); |
| 341 |
< |
int pid; |
| 341 |
> |
RT_PID pid; |
| 342 |
|
|
| 343 |
|
if (fp == NULL) |
| 344 |
|
return; |