mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
fixup style
This commit is contained in:
parent
948a09d6f2
commit
e1d41b3102
@ -18,12 +18,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "busybox.h"
|
#include "busybox.h"
|
||||||
|
|
||||||
int
|
int setsid_main(int argc, char *argv[])
|
||||||
setsid_main(int argc, char *argv[]) {
|
{
|
||||||
|
if (argc < 2)
|
||||||
if (argc < 2) {
|
|
||||||
bb_show_usage();
|
bb_show_usage();
|
||||||
}
|
|
||||||
|
|
||||||
if (getpgrp() == getpid()) {
|
if (getpgrp() == getpid()) {
|
||||||
switch(fork()){
|
switch(fork()){
|
||||||
@ -42,5 +40,4 @@ setsid_main(int argc, char *argv[]) {
|
|||||||
execvp(argv[1], argv + 1);
|
execvp(argv[1], argv + 1);
|
||||||
|
|
||||||
bb_perror_msg_and_die("%s", argv[1]);
|
bb_perror_msg_and_die("%s", argv[1]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user