Re: [hackers] setsid: add optional -f to force fork()

2020-07-25 Thread Michael Forney
On 2020-07-14, Hiltjo Posthuma wrote: > The below patch adds an -f flag to force fork(2)ing and creating a new > process. Thanks, I applied the patch. Though I wonder, is Linux the only operating system that typically has setsid(1)? It doesn't look like it is available on BSDs. It's such a

Re: [hackers] setsid: add optional -f to force fork()

2020-07-25 Thread Hiltjo Posthuma
On Tue, Jul 14, 2020 at 10:15:43AM +0200, Hiltjo Posthuma wrote: > Hi, > > The below patch adds an -f flag to force fork(2)ing and creating a new > process. > > > From a75ef384c11b64732dd6a3adc9249ba6beb8a67e Mon Sep 17 00:00:00 2001 > From: Hiltjo Posthuma > Date: Tue, 14 Jul 2020 10:11:43

Re: [hackers] setsid: add optional -f to force fork()

2020-07-14 Thread Hiltjo Posthuma
On Tue, Jul 14, 2020 at 12:15:20PM +0200, Mattias Andrée wrote: > Hi, > > Is there any reason you would want to force it? > > Yes, when getpgrp() != getpid(). I use this in my plumb script for my news program to setsid -f and open a link my browser. Using the setsid -f option the browser is

Re: [hackers] setsid: add optional -f to force fork()

2020-07-14 Thread Mattias Andrée
Hi, Is there any reason you would want to force it? Regards, Mattias Andrée On Tue, 14 Jul 2020 10:15:43 +0200 Hiltjo Posthuma wrote: > Hi, > > The below patch adds an -f flag to force fork(2)ing and creating a new > process. > > > From a75ef384c11b64732dd6a3adc9249ba6beb8a67e Mon Sep

[hackers] setsid: add optional -f to force fork()

2020-07-14 Thread Hiltjo Posthuma
Hi, The below patch adds an -f flag to force fork(2)ing and creating a new process. >From a75ef384c11b64732dd6a3adc9249ba6beb8a67e Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 14 Jul 2020 10:11:43 +0200 Subject: [PATCH] setsid: add optional -f to force fork() --- setsid.1 | 3