1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Circle sources in a displayed image. |
6 |
|
* |
9 |
|
|
10 |
|
#include "standard.h" |
11 |
|
#include "view.h" |
15 |
– |
#include "resolu.h" |
16 |
– |
#include "vfork.h" |
12 |
|
#include <signal.h> |
13 |
|
#include <X11/Xlib.h> |
14 |
|
#include <X11/Xutil.h> |
116 |
|
exit(2); |
117 |
|
} |
118 |
|
/* start ximage */ |
119 |
< |
if (vfork() == 0) { |
119 |
> |
if (fork() == 0) { |
120 |
|
execlp(XIM, XIM, "-c", "256", pname, 0); |
121 |
|
perror(XIM); |
122 |
|
fprintf(stderr, "%s: cannot start %s\n", |
137 |
|
fprintf(stderr, |
138 |
|
"%s: warning -- window seems to be the wrong size!\n", |
139 |
|
progname); |
140 |
< |
if (pres.or & YMAJOR) { |
140 |
> |
if (pres.rt & YMAJOR) { |
141 |
|
pres.xr = wa.width; |
142 |
|
pres.yr = wa.height; |
143 |
|
} else { |