summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/contrib/dialHDB.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-19 21:30:30 +0000
committerache <ache@FreeBSD.org>1995-08-19 21:30:30 +0000
commitb06a057b826e638a06edc1f92d5eed32662e0077 (patch)
treee1ea6a3b65e0f2e9f5d6e0f0f3956a82ada4b85b /gnu/libexec/uucp/contrib/dialHDB.c
parenta80ddb7b20df1716802b47c395201f120b369ee6 (diff)
downloadFreeBSD-src-b06a057b826e638a06edc1f92d5eed32662e0077.zip
FreeBSD-src-b06a057b826e638a06edc1f92d5eed32662e0077.tar.gz
Commit delta: current -> 1.06 + FreeBSD configuration
Diffstat (limited to 'gnu/libexec/uucp/contrib/dialHDB.c')
-rw-r--r--gnu/libexec/uucp/contrib/dialHDB.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/libexec/uucp/contrib/dialHDB.c b/gnu/libexec/uucp/contrib/dialHDB.c
index 8650ff0..cb26621 100644
--- a/gnu/libexec/uucp/contrib/dialHDB.c
+++ b/gnu/libexec/uucp/contrib/dialHDB.c
@@ -86,7 +86,7 @@ main(int argc,char *argv[])
int child; /* pid of child process */
int stat; /* exit status of child process */
char *temp; /* used to get basename of dialer */
-
+
if(argc!=5)
{
fprintf(stderr,kUsage,argv[0],argv[0]);
@@ -95,9 +95,9 @@ main(int argc,char *argv[])
dialerPath=argv[1];
dialerName= (temp=strrchr(argv[1],'/'))!=NULL ? temp+1 : argv[1];
-
+
parent=getpid();
-
+
signal(SIGUSR1,badExec); /* set up for possible failed exec */
if((child=fork())<0)
@@ -111,7 +111,7 @@ main(int argc,char *argv[])
signal(SIGHUP,SIG_IGN);
signal(SIGINT,SIG_IGN);
signal(SIGTERM,SIG_IGN);
-
+
wait(&stat); /* wait for child to exit */
exit(figureStat(stat)); /* figure out our exit code and die */
}
@@ -125,7 +125,7 @@ main(int argc,char *argv[])
kill(parent,SIGUSR1);
exit(0);
}
- }
+ }
exit(0);
}
@@ -136,7 +136,7 @@ int figureStat(int stat)
int exit;
int errFlag;
int error;
-
+
if(WIFSIGNALED(stat)) /* determine if exit was from signal or what */
{
fprintf(stderr,"Error: Dialer %s recieved signal %d.\n",dialerName,
OpenPOWER on IntegriCloud