Date: Wed, 6 Sep 1995 18:43:41 -0500 From: Randy Berndt <rberndt@nething.com> To: questions@freebsd.org Subject: setsid() saves the day... Message-ID: <199509062343.SAA00009@vellocet.insync.net>
next in thread | raw e-mail | index | archive | help
I had posted a message awhile ago about a problem getting a program to stay up when run from rc.local. It would start, then die as soon as rc.local finished. I stuck a 'ps ax' at the end of rc.local, and the process showed stat of S+ (+ evidently indicating that the process was associated with the foreground session). Hmmmmm..... 'apropos session' setsid? 'man setsid' Exactly what I was looking for! I stuck "sid = setsid();" in the first part of main, and it works great! Just thought I would pass this along. Randy Berndt <rberndt@nething.com> ---------------------------------- AOS/VS, FreeBSD, DOS: I'm caught in a maze of twisty little command interpreters, all different.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509062343.SAA00009>