aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 36f2775c78604a992687a001c6cb5673e6170582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

# Table of Contents

1.  [Dependencies](#orgfb13261)
2.  [Installation](#org4f42ed6)
3.  [Usage](#orgcad236a)

Simple implementation of util-linux **setsid** for FreeBSD. This was not tested
on other BSD's or macOS but this probably works just fine.


<a id="orgfb13261"></a>

# Dependencies

-   A C compiler
-   BSD Make


<a id="org4f42ed6"></a>

# Installation

You can get **bsdsetsid** either through `git` or `fossil`.

For `fossil` use:

```sh
mkdir bsdsetsid
cd bsdsetsid
fossil clone https://chiselapp.com/user/JozanLeClerc/repository/bsdsetsid bsdsetsid.fossil
fossil open --force bsdsetsid.fossil
```

or for `git`:

```sh
git clone git://jozanleclerc.xyz/jozan/bsdsetsid.git
cd bsdsetsid
```

Then build and install the program:

```sh
make
sudo make install clean
```

Note that if you are one macOS, you need to install and use BSD Make instead
of GNU Make.


<a id="orgcad236a"></a>

# Usage

Example of usage:

```sh
bsdsetsid st -e sh -c 'cowsay hello; zsh -i'
exit
```

Replace `st` and its arguments with any program you'd like to run detached
from the current shell.

For more informations, run:

```sh
man bsdsetsid
```

Thanks for checking **bsdsetsid**.