summaryrefslogtreecommitdiff
path: root/accel-pppd/main.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-11-22 08:56:40 +0300
committerDmitry Kozlov <xeb@mail.ru>2014-11-22 08:56:40 +0300
commit81ca3923a29ea9b67f7291be23b210019546aa5f (patch)
treefcebf0d426665b4f06e01168f27cd8f9ab8c50d8 /accel-pppd/main.c
parent830c399cf126f6bf1e8dfa1ad919a3ce8e346c5d (diff)
downloadaccel-ppp-81ca3923a29ea9b67f7291be23b210019546aa5f.tar.gz
accel-ppp-81ca3923a29ea9b67f7291be23b210019546aa5f.zip
remove trailing whitespaces
Diffstat (limited to 'accel-pppd/main.c')
-rw-r--r--accel-pppd/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/accel-pppd/main.c b/accel-pppd/main.c
index 7be67670..9eb08e10 100644
--- a/accel-pppd/main.c
+++ b/accel-pppd/main.c
@@ -111,7 +111,7 @@ static void close_all_fd(void)
int fd;
sprintf(path, "/proc/%u/fd", getpid());
-
+
dirp = opendir(path);
if (!dirp)
return;
@@ -162,7 +162,7 @@ static void sigsegv(int num)
int status;
pthread_sigmask(SIG_SETMASK, &orig_set, NULL);
-
+
if (conf_dump) {
FILE *f;
unsigned int t = time(NULL);
@@ -182,8 +182,8 @@ static void sigsegv(int num)
sprintf(cmd, "gdb -x %s %s %d > dump-%u", fname, exec_file, getpid(), t);
system(cmd);
-
- unlink(fname);
+
+ unlink(fname);
}
out:
@@ -242,12 +242,12 @@ int main(int _argc, char **_argv)
if (!conf_file)
goto usage;
-
+
if (internal) {
while (getppid() != 1)
sleep(1);
}
-
+
if (triton_init(conf_file))
_exit(EXIT_FAILURE);
@@ -300,12 +300,12 @@ int main(int _argc, char **_argv)
sa.sa_handler = config_reload;
sa.sa_mask = set;
sigaction(SIGUSR1, &sa, NULL);
-
+
sa.sa_handler = sigsegv;
sa.sa_mask = set;
sigaction(SIGSEGV, &sa, NULL);
-
+
sigdelset(&set, SIGKILL);
sigdelset(&set, SIGSTOP);
sigdelset(&set, SIGSEGV);
@@ -334,7 +334,7 @@ int main(int _argc, char **_argv)
sigwait(&set, &sig);
log_info1("terminate, sig = %i\n", sig);
-
+
triton_terminate();
return EXIT_SUCCESS;