|
|
@@ -223,7 +223,7 @@ confedit()
|
|
|
signal(SIGCONT, SIG_DFL);
|
|
|
|
|
|
my_gettime(&ts1);
|
|
|
- switch (pid = fork()) {
|
|
|
+ switch (pid = vfork()) {
|
|
|
case -1:
|
|
|
fatal(STR("Cannot fork"), 0);
|
|
|
case 0:
|
|
|
@@ -231,8 +231,8 @@ confedit()
|
|
|
/* child */
|
|
|
execlp(editor, editor, tmpconf.file, (char*)NULL);
|
|
|
perror(editor);
|
|
|
- exit(1);
|
|
|
- /*NOTREACHED*/}
|
|
|
+ _exit(127);
|
|
|
+ }
|
|
|
default:
|
|
|
/* parent */
|
|
|
break;
|