Skip to content

Commit

Permalink
Do not exceed 80 characters per line
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanuel Bretelle <[email protected]>
  • Loading branch information
chantra authored and laf0rge committed Oct 20, 2010
1 parent eaaf500 commit 91384a4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ggsn/ggsn.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,18 @@ int main(int argc, char **argv)
/* Is this really needed ? */
f = freopen("/dev/null", "w", stdout);
if (f == NULL) {
sys_err(LOG_WARNING, __FILE__, __LINE__, 0, "Could not redirect stdout to /dev/null");
sys_err(LOG_WARNING, __FILE__, __LINE__, 0,
"Could not redirect stdout to /dev/null");
}
f = freopen("/dev/null", "w", stderr);
if (f == NULL) {
sys_err(LOG_WARNING, __FILE__, __LINE__, 0, "Could not redirect stderr to /dev/null");
sys_err(LOG_WARNING, __FILE__, __LINE__, 0,
"Could not redirect stderr to /dev/null");
}
f = freopen("/dev/null", "r", stdin);
if (f == NULL) {
sys_err(LOG_WARNING, __FILE__, __LINE__, 0, "Could not redirect stdin to /dev/null");
sys_err(LOG_WARNING, __FILE__, __LINE__, 0,
"Could not redirect stdin to /dev/null");
}
rc = daemon(0, 0);
if (rc != 0) {
Expand Down

0 comments on commit 91384a4

Please sign in to comment.