Stas Bekman wrote: > But you don't need to call setsid() when you fork. Why looking for > complicated workaround when you can do it properly without any workaround. > Have you ever seen an example of fork that uses setsid? > But your Guide says: ---- A much better approach would be to spawn a sub-process, hand it the information it needs to do the task, and have it detach (close STDIN, STDOUT and STDERR + execute setsid()). ----
- fork inherits socket connection Kees Vonk 7249 24549
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Kees Vonk 7249 24549
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Kees Vonk 7249 24549
- Re: fork inherits socket connec... Stas Bekman
- Re: fork inherits socket co... Jeremy Howard
- Re: fork inherits socke... Stas Bekman
- Re: fork inherits socke... Stas Bekman
- Re: fork inherits socke... Vivek Khera
- Re: fork inherits socke... Stas Bekman
- Re: fork inherits socket co... Kees Vonk 7249 24549
- Re: fork inherits socke... Stas Bekman
- Re: fork inherits socke... Kees Vonk 7249 24549
- Re: fork inherits socke... Stas Bekman
- Re: fork inherits socke... Tom Brown
- Re: fork inherits socke... Stas Bekman