Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is setsid command missing on OS X?

Tags:

bash

macos

I mean I can't use it in bash, is it not available on OS X, or is it just missing on my Mac?

It's not a PATH variable issue, because I searched with find command, and there's no file named setsid on my Mac at all.

If it's missing on OS X, is there any alternative to it? Or if it's the case that I somehow deleted it accidentally, where can I find a copy of it?

like image 510
Nathaniel_Wu Avatar asked Apr 13 '16 07:04

Nathaniel_Wu


2 Answers

use Brew:

brew install util-linux
like image 144
prodriguez903 Avatar answered Nov 11 '22 21:11

prodriguez903


Yes. /usr/bin/setsid is missing on Mac OS/X.

The OS interface is available, so based on the chapter 2 man page there may be some hope for porting the Linux source to Darwin.

like image 21
J_H Avatar answered Nov 11 '22 19:11

J_H