ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/util.C
(Generate patch)

Comparing gvpe/src/util.C (file contents):
Revision 1.11 by pcg, Thu Oct 16 02:41:21 2003 UTC vs.
Revision 1.12 by pcg, Thu Jan 29 18:55:10 2004 UTC

20*/ 20*/
21 21
22#include "config.h" 22#include "config.h"
23 23
24#include <cstdio> 24#include <cstdio>
25#include <cstdlib>
25#include <cstring> 26#include <cstring>
26 27
27#include <errno.h> 28#include <errno.h>
28#include <signal.h> 29#include <signal.h>
29#include <sys/types.h> 30#include <sys/types.h>
143 if ((pid = fork ()) == 0) 144 if ((pid = fork ()) == 0)
144 { 145 {
145 char *filename; 146 char *filename;
146 asprintf (&filename, "%s/%s", confbase, cb()); 147 asprintf (&filename, "%s/%s", confbase, cb());
147 execl (filename, filename, (char *) 0); 148 execl (filename, filename, (char *) 0);
148 exit (255); 149 exit (126);
149 } 150 }
150 else if (pid > 0) 151 else if (pid > 0)
151 { 152 {
152 if (wait) 153 if (wait)
153 { 154 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines