diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2006-03-23 02:07:41 +0000 |
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-23 02:07:41 +0000 |
| commit | e1d41b3102a34d92e61b265810306bb437c73ba0 (patch) | |
| tree | ad181acd9fd68afac94204756035af5019540c31 /miscutils | |
| parent | 948a09d6f288144744ebe281bc18c4bf1a9fac58 (diff) | |
| download | busybox-w32-e1d41b3102a34d92e61b265810306bb437c73ba0.tar.gz busybox-w32-e1d41b3102a34d92e61b265810306bb437c73ba0.tar.bz2 busybox-w32-e1d41b3102a34d92e61b265810306bb437c73ba0.zip | |
fixup style
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/setsid.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/miscutils/setsid.c b/miscutils/setsid.c index 39be54621..80c719ca7 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c | |||
| @@ -18,12 +18,10 @@ | |||
| 18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
| 19 | #include "busybox.h" | 19 | #include "busybox.h" |
| 20 | 20 | ||
| 21 | int | 21 | int setsid_main(int argc, char *argv[]) |
| 22 | setsid_main(int argc, char *argv[]) { | 22 | { |
| 23 | 23 | if (argc < 2) | |
| 24 | if (argc < 2) { | ||
| 25 | bb_show_usage(); | 24 | bb_show_usage(); |
| 26 | } | ||
| 27 | 25 | ||
| 28 | if (getpgrp() == getpid()) { | 26 | if (getpgrp() == getpid()) { |
| 29 | switch(fork()){ | 27 | switch(fork()){ |
| @@ -42,5 +40,4 @@ setsid_main(int argc, char *argv[]) { | |||
| 42 | execvp(argv[1], argv + 1); | 40 | execvp(argv[1], argv + 1); |
| 43 | 41 | ||
| 44 | bb_perror_msg_and_die("%s", argv[1]); | 42 | bb_perror_msg_and_die("%s", argv[1]); |
| 45 | |||
| 46 | } | 43 | } |
