summaryrefslogtreecommitdiff
path: root/src/system.c
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2003-08-22 03:52:02 +0000
committerMichael Jennings <mej@kainx.org>2003-08-22 03:52:02 +0000
commit0784d8336bbcef8dd4ed11cf03a4df884a091082 (patch)
treea23621107bea604dca59c80147eedc5ba35135f2 /src/system.c
parent6b43700de16f702576b678f3a18fcb6fd9a7aa7c (diff)
downloadeterm-0784d8336bbcef8dd4ed11cf03a4df884a091082.tar.gz
Thu Aug 21 23:51:12 2003 Michael Jennings (mej)
Oops, that wasn't *quite* what I had in mind.... SVN revision: 7362
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/system.c b/src/system.c
index bd0d8ca..a2ce7db 100644
--- a/src/system.c
+++ b/src/system.c
@@ -47,7 +47,7 @@ wait_for_chld(int system_pid)
{
int pid, status = 0, save_errno = errno, code;
- D_OPTIONS(("wait_for_chld(%ld) called.\n", system_pid));
+ D_eterm_options(("wait_for_chld(%ld) called.\n", system_pid));
while (1) {
do {
@@ -60,14 +60,14 @@ wait_for_chld(int system_pid)
errno = save_errno;
break;
}
- D_OPTIONS(("%ld exited.\n", pid));
+ D_eterm_options(("%ld exited.\n", pid));
if (pid == system_pid || system_pid == -1) {
if (WIFEXITED(status)) {
code = WEXITSTATUS(status);
- D_OPTIONS(("Child process exited with return code %lu\n", code));
+ D_eterm_options(("Child process exited with return code %lu\n", code));
} else if (WIFSIGNALED(status)) {
code = WTERMSIG(status);
- D_OPTIONS(("Child process was terminated by unhandled signal %lu\n", code));
+ D_eterm_options(("Child process was terminated by unhandled signal %lu\n", code));
} else {
code = 0;
}
@@ -86,7 +86,7 @@ system_wait(char *command)
pid_t pid;
- D_OPTIONS(("system_wait(%s) called.\n", command));
+ D_eterm_options(("system_wait(%s) called.\n", command));
if (!(pid = fork())) {
setreuid(my_ruid, my_ruid);
@@ -95,7 +95,7 @@ system_wait(char *command)
print_error("execl(%s) failed -- %s\n", command, strerror(errno));
exit(EXIT_FAILURE);
} else {
- D_OPTIONS(("%d: fork() returned %d\n", getpid(), pid));
+ D_eterm_options(("%d: fork() returned %d\n", getpid(), pid));
return (wait_for_chld(pid));
}
ASSERT_NOTREACHED_RVAL(0);
@@ -107,7 +107,7 @@ system_no_wait(char *command)
pid_t pid;
- D_OPTIONS(("system_no_wait(%s) called.\n", command));
+ D_eterm_options(("system_no_wait(%s) called.\n", command));
if (!(pid = fork())) {
setreuid(my_ruid, my_ruid);