projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
948a09d
)
fixup style
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 23 Mar 2006 02:07:41 +0000
(
02:07
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 23 Mar 2006 02:07:41 +0000
(
02:07
-0000)
miscutils/setsid.c
patch
|
blob
|
history
diff --git
a/miscutils/setsid.c
b/miscutils/setsid.c
index 39be54621c1ae1adc9834c46409067836055e6dd..80c719ca75c46a7e7d3350daee7236327c765d45 100644
(file)
--- a/
miscutils/setsid.c
+++ b/
miscutils/setsid.c
@@
-18,12
+18,10
@@
#include <stdlib.h>
#include "busybox.h"
-int
-setsid_main(int argc, char *argv[]) {
-
- if (argc < 2) {
+int setsid_main(int argc, char *argv[])
+{
+ if (argc < 2)
bb_show_usage();
- }
if (getpgrp() == getpid()) {
switch(fork()){
@@
-42,5
+40,4
@@
setsid_main(int argc, char *argv[]) {
execvp(argv[1], argv + 1);
bb_perror_msg_and_die("%s", argv[1]);
-
}